View Single Post
  #5   Spotlight this post!  
Unread 19-01-2003, 02:46
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
No, == is not a valid operator in PBASIC.

Goya's third post hit the nail on the head: if you don't SERIN, you don't get any new data.

As for what makes an expression a condition is the presence of any of the following operators:

=
>(=)
<(=)
<>

Note that = can also be used for assignment. It's function is determined by the context in which it is used. For example:

if rc_sw1=1 then ...

uses = as a comparison operator, whereas

rc_sw1=1

uses = as the assignment operator.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php