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.
007bond
11 Jun 2007 07:53
though ryan has a valid point, unless you know that, it can be very confusing. Alex should take note of that
Dr.Froth
11 Jun 2007 18:07
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.
ryandebraal
11 Jun 2007 18:44
i figured it out, its strange that you dont create a flag, you just use it and then the program understands what it is
Elexxorine
12 Jun 2007 10:11
Just magine that every flag is already made but not used until you want it.
ryandebraal
12 Jun 2007 18:23
thinking back to my programming classes --- i think they call it implicit declaration? ^^
paul_one
20 Jun 2007 22:02
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..