From Scriptwiki
Revision as of 14:21, 10 November 2005 by Zyberdog (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns absolutely nothing. Used to compare values in If-Then-Else checks.

  • This identifier has no options or parameters.


The first example shows the common use, if any, of $null.

if (%age == $null) { echo -a the variable does not exist }
elseif (%age != $null) { echo -a the variable does exist! }

The same thing can be done with simple checking, as shown below.

if (!%age) { echo -a the variable does not exist as it returns nothing when called }
else { echo -a it does not not exist, hence it must exist, woho. }