xboxscene.org forums

Author Topic: Logical Operators And Virtual-keyboard Script  (Read 86 times)

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
Logical Operators And Virtual-keyboard Script
« 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!
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Logical Operators And Virtual-keyboard Script
« Reply #1 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)
Logged

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
Logical Operators And Virtual-keyboard Script
« Reply #2 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
Logged