xboxscene.org forums

OG Xbox Forums => Official MediaXMenu (MXM) Forum => Dashboard Forums => MXM ActionScripting Forum => Topic started by: Kthulu on November 12, 2003, 11:14:00 AM

Title: Logical Operators And Virtual-keyboard Script
Post by: Kthulu on November 12, 2003, 11:14:00 AM
are there any logical operators like AND/OR?  for use like...
CODE
If# %num1% == 1 AND %num2% == 0 GOTO TEN

will there be any in the future?

also, (shameless plug, sorry) be sure to check out my virtual-keyboard script here:
http://forums.xbox-scene.com/index.php?act...00&#entry864427

Thanks!
Title: Logical Operators And Virtual-keyboard Script
Post by: BenJeremy on November 12, 2003, 04:37:00 PM
Not sure.... I intended Actionscripting to be failry simple to parse - but it's not out of the question (just a bit of work for me)
Title: Logical Operators And Virtual-keyboard Script
Post by: Kthulu on November 12, 2003, 08:09:00 PM
sorry, i don't mean to bother you...you've done/do so much already.  actually, i just thought of a work-around for doing that sort of thing...
CODE

SET state1 1
SET state2 0
SET state1ANDstate2 %state1%%state2%
if# %state1ANDstate2% > 1 GOTO STATE1ORSTATE2ISTRUE


hope that helps someone else who might like to do some logical ops...

This post has been edited by Kthulu: Nov 13 2003, 04:10 AM