View Single Post
  #10   Spotlight this post!  
Unread 14-02-2003, 23:44
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
Quote:
Originally posted by Raven_Writer
D'oh...all well, sorry about that. I thought I mixed it up. Can you do "CASE > 4" or just "CASE pw_12 > 4"?
The first one is legal (CASE >4). The second is not legal syntax. Here's a good way to thing of the operators: imagine taking the SELECT variable/expression (from SELECT expr) and putting it immediately in front of the thing after CASE. ie
SELECT p1_y
CASE <127
...
can be thought of as an if with predicate p1_y<127.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php