Problems with global variables i0..iz and j0..jz

kendallreid

2014-06-05 23:01:12

Hi! Are these in fact global variables? The manual seems to say they are, however when I try use them nothing happens, no value/s gets assigned when for example I do: i2 = 22, or jk = 33

Thx!

DvlsAdvct

2014-06-10 18:46:04

Hi kendallreid

Yes, those are all global variables. Can you give me an example of a translator your are creating, or attach the project that is giving you issues?

Thanks
Jared

kendallreid

2014-06-10 19:12:01

I apologize I've done some more tests and its working now. Only one that didn't seem to work was "if" and that is probably because it is a keyword. I did test a few and it wasnt working cant seem to repeat

I noticed that y0-yz, z0-zz are also globals? Helpful as I'm using a lot of global variables. Presuming a-f are reserved for other things?

DvlsAdvct

2014-06-11 00:59:15

Right now the only available global variables are g0-g9, ga-gz, h, i, j, k, l, m, n, y and z.

oo-xx are local variables.

'if' should work, you just need to make especially sure the syntax of your rules line is correct. you should be able to do something like if=1, or if if==1 then...