2Hi.Biz
Trang chủ | TWIG | Xtscript | Templates | Xtgem
xtscript Việt hóa 2015
AiChat.Wap.Sh
if not or not
Nếu tuyên bố tạo ra các chi nhánh và các công tắc của Xtscript của bạn
[...] = optional ... = your valueif not ... or not ...
...
[else
...]
endif
Code ví dụ:
<!--parser:xtscript-->

var $x = call mt_rand $min=1;$max=2
var $y = call mt_rand $min=1;$max=2

# If not ... Or not...
# simulates $x == 1 and $y == 1
if not $x == 1 or not $y == 1
print One of \$x or \$y is not equal to 1
else
print Both \$x and \$y are equal to 1
endif

print <br />\$x=$x \$y=$y
<!--/parser:xtscript-->
Code đã chạy;
One of $x or $y is not equal to 1
$x=2 $y=2