User Login
Name
Password
Site Contents
News
About
Download
Scripts
Tutorials
Register
Support
FAQ
Script Reference
New User


Contact Me
Xide
Online Scripting Reference

IF


Usage:

IF (expression)
...
ELSEIF
...
ELSE
...
END


Description:

This macro will write micro-commands to perform a standard 'if' comparison. All the commands under the 'IF' section of this structure will only be executed if the expression evaluates to true. The commands under the 'ELSEIF' will only be executed if the primary expression results to false, and 'ELSEIF' expression results to true. The commands under the 'ELSE' structure will only be executed if no other part of the structure has been.


Example:

IF ($x = "Hello")
echo "Hello there!"
ELSEIF ($x = "Bye")
echo "Bye!"
ELSE
echo "I didn't hear you!"
END


Return to item listing