Variable data type prefix
dmulder Posts: 3
I am still in the learning process of programming AMX and I have inherited some code from an existing system. I am trying to comment/clean up as much as I can. Has anyone seen the 'b' prefix used before? The only word that comes to mind is 'boolean'. Example code below.
I just put that out there that I often have 'states' stored in integers, with 'Off' being 0, but any other state having an index value. There's a chance that variable started as on or off, but maybe theres a state where the fire alarm was muted but not reset, etc.
The moral is... just because someone named it as a boolean, doesn't mean it' IS a boolean. If you experiencing issues, might be worth checking.