Home
XtGem-
Templates-
XtScript-
Translate this page
Powered by
Microsoft® Translator
Main Index
Predefined Functions
Scripts
Xtforum post
Short Url
if not or
The
if
statement creates the branches and switches of your Xtscript
[...] = optional ... = your value
if not ... or ...
...
[else
...]
endif
Example code
Show as text
<!--parser:xtscript--> # 2 random numbers var $x = call mt_rand $min=1;$max=100 var $y = call mt_rand $min=1;$max=100 # If not ... Or ... # simulates $x > 50 and $y < 50 if not $x >= 50 or $y > 50 print \$x is less than 50 or \$y is more than 50<hr /> else print \$x is more than 50 \$y is less than 50<hr /> endif print \$x=$x \$y=$y<br /> <!--/parser:xtscript-->
Show as text
Example output
Reload
$x is less than 50 or $y is more than 50
$x=43 $y=47
Related pages
if
if and
if or
if not or not
if elseif
goto
Quick index
assign
basic syntax
comments
concatenation
cookies
custom paging
debugging tools
del
delete
get
goto
if
if and
if elseif
if not or
if not or not
if or
includes
js in xtscript
print
return
source
user defined functions
var
xt files
xtfunctions in xtscript
About us
Contact
Forum
Â