View Single Post
  #2   Spotlight this post!  
Unread 28-03-2003, 23:57
JasonStern JasonStern is offline
Mentor
FRC #1123 (AIM Robotics)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Arlington, VA
Posts: 65
JasonStern is on a distinguished road
1. it is step by step, left to right, unless you use parenthesis. as for inequalities, they eval to a 0 or a 1. atleast, thats how it works in C++ so im assuming it is the same for pbasic. therefore (255>200)>100 will return false as (225>200) becomes 1 and 1 >100 is not true.

2. same as above, it either evals to true (1) or false (0). if i'm remembering correctly, the only time a number is false is if it is 0, all other times it is true (ie, 1 is true, so is 2,3,4 -10,-12, etc..) and AND requires all to be true, while an or requires only one, or both to be true. an XOR is true if one and only input is true ( 1 xor 0 = 1, 0 xor1 =1, 1 xor 1 = 0, 0xor0=0)

Thats all I know, for now. hope this helps! Thanks for all the work you put into robo emu, we appreciate it!
__________________
Que será será

Last edited by JasonStern : 28-03-2003 at 23:59.