Availability
$WBGV is available for use with all WBSP commands:
Syntax
$WBGV{filename|sectionname|varname|default|render}
$WBGV[filename|sectionname|varname|default|render]
Parameters
filename - full path and file name of the configuration file
sectionname - the name of the section that contains required parameter
varname - the name of the required parameter
default - optional default value that will be returned if required parameter
does not have a value
render - optional boolean parameter (T/F) that defines whether the value will be
processed by WhizBase or returned as plain text
Returns
Value of required parameter.
Example
File wbgv.wbsp
File resource.cfg
After running this example, the resulting page in browser, may look like this:
Then simply change the line $wbsetv[lng|eng] to $wbsetv[lng|esp] and the resulting page will change to:
Try changing the value to ger, ita and fra and see the result.