MausBoy Posted June 29, 2006 Share Posted June 29, 2006 (edited) Do bit operations not work with long variable names? I try: if !dir(2) then dir(2) = 1 : dir(1) = 0 and I get "Error: Unknown Keyword: Then" but: if !d(2) then d(2) = 1 : d(1) = 0 works fine. Also, if I try: if d(2) = 1 then d(2) = 0 I get "Error: Unknown Keyword: =" I know you don't need the = 1/= 0 but it's still wierd that it dosn't work. edit: sh*t I was using the wrong brackets. It's {} not (), silly mistake but ah well it's like 4am here. I threw my back so I can't sleep. 26 and I'm already feeling old! I'm going to have to give up some programming time, I've been neglecting cardio and weights and I'm already falling apart. Edited June 29, 2006 by MausBoy Quote Link to comment https://forums.atariage.com/topic/89896-bit-operations/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.