websTestVar GoAhead WebServer API GoAhead EMF

Synopsis

Test to see if a Form variable is defined.

Prototype

 #include "webs.h" 

 int websTestVar(webs_t wp, char_t *variable); 

Parameters

wp Web server connection handle.
variable The variable to test.

Description

The websTestVar procedure returns TRUE if the specified variable is defined in the Form environment table. If the variable is not defined, the value of the default is returned.

Return Value

Returns 1 if the variable is defined, otherwise 0 is returned.

Example

 if (websTestVar(wp, "Wizard") { /* Running as a wizard */ } 

Stability Classification

Stable.

See Also

Standard form variables, websSetVar