# a{b} doesn't work?

### #1 GemintronicOFFLINE

Gemintronic

Jason S. - Lead Developer & CEO

• 9,222 posts

Posted Sat Jul 28, 2018 3:13 AM

So, I find myself writing:

if a = 0 then b{0} = 0 : goto after_acheck
if a = 1 then b{1} = 0 : goto after_acheck
if a = 2 then b{2} = 0 : goto after_acheck
if a = 3 then b{3} = 0 : goto after_acheck
if a = 4 then b{4} = 0 : goto after_acheck
if a = 5 then b{5} = 0 : goto after_acheck
if a = 6 then b{6} = 0 : goto after_acheck
if a = 7 then b{7} = 0 : goto after_acheck
after_aheck

Because this doesn't compile:

b{a} = 0

Is there something I'm not doing right?

### #2 Random TerrainOFFLINE

Random Terrain

Visual batari Basic User

• 28,789 posts
• Controlled Randomness
Replay Value
Nonlinear
• Location:North Carolina (USA)

Posted Sat Jul 28, 2018 6:10 PM

It says this on the bB page:

"Also remember that a variable cannot be used inside of the curly brackets. A number must be used (0 through 7) unless special code is used."

#### 0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users