Jump to content
IGNORED

BIT OPERATIONS


MausBoy

Recommended Posts

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 by MausBoy
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...