Flags??

Where do I add a new flag so I can use it??

You don't need to 'add' then, if a flag is not set to 'on' or 'off and you check it's value, it'll return 'off'. You could in the start up script add a section that sets all the flags you want to 'off' ready for use.

though ryan has a valid point, unless you know that, it can be very confusing.
Alex should take note of that

Perhaps he just wants to know how to make a flag in general.

If you need a new flag for an if/then clause just select flag on the if/then window and give it a name. Quest will take it from there. (on QDK anyway..I don't use ASL so I can't help you there.)

Instant flag.

Good Luck.

i figured it out, its strange that you dont create a flag, you just use it and then the program understands what it is

Just magine that every flag is already made but not used until you want it.

thinking back to my programming classes --- i think they call it implicit declaration? ^^

It's using stuff just like java/VB.

You can define variables or undefined type on the fly..

.. IMO leads to very sloppy programming, as you can run a certain function that wants a variable with or without that variable existing.

.. Not to mention global variables, and passing parameters etc..