Allibsus    
main page | buy now | interactive tour | demo | support | contact us
 



main page
buy now
tour
demo
support
contact us



Online Manual / Configuration Files / If condition then.

Command: if
Usage:

Allows you to tell the script to check if condition is true, then run the commands within the if condition block.

Example:

if ("[output name='Search Engine']" == "Yahoo") then
redirect value="http://www.yahoo.com/"
endif

if ("[output name='Search Engine']" == "Google") then
redirect value="http://www.google.com/"
endif

This example shows how you can redirect a user to a certain search engine depending on which one they select.

if ("[output name='password1']" != "[output name='password2']") then
errorMsg value="Your passwords do not match."
endif

This example shows how to check if two password fields match. If they do not match, create an error message.