Custom commands are created by writing a BASIC cell. You say that you have ran out of variables. Even the latest version of Logicator restricts you on variable use, although it is to a lesser extent than older ones. The hidden ones are used for things such as bintoascii in the LCD command. If you convert a blank program to BASIC the symbol definitions at the top will show which byte variables are assigned to each letter and you'll see that some variable numbers have been skipped so you can use them in a BASIC cell.
If you have unused output pins on the PICAXE then they
can also be used as bit variables.
You need to state the following:
- Which PICAXE you are using
- What the program is doing
- What you need to do bitwise if for
Also consider moving over from Logicator to BASIC coding. The spaghetti code Logicator produces makes the language look confusing but it isn't really.