Flags??

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

Elexxorine
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
though ryan has a valid point, unless you know that, it can be very confusing.
Alex should take note of that

Dr.Froth
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
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
Just magine that every flag is already made but not used until you want it.

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

paul_one
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..

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums