websTestVar | GoAhead WebServer API | GoAhead EMF |
Test to see if a Form variable is defined
#include "webs.h" int websTestVar(webs_t wp, char_t *variable);
wp | Web server connection handle |
variable | The variable to test |
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.
Returns 1 if the variable is defined. Otherwise 0 is returned.
if (websTestVar(wp, "Wizard") { /* Running as a wizard */ }