cool !!! thank you sgreig! I didn't know that (I was about to ask too, "doesn't it need the, = true, at the end", before I had read further on, lol). So quest knows that (object.boolean)'s default is ( = ) true.
HK loves anything that shortens the time down (though getting~having too many of such short-cut methods can also cause me overwhelmingness and thus difficulty in remembering all of them or confusion too, lol).
---------
I think wouldn't it be:
if (not object.boolean) {
otherwise, you'd need to write it out (as I don't think, as far as I know, there's any other way of saying a negative* with quest):
if (object.boolean = false) {
*you also pointed out that "<>" can be used as not equal, but this type of negative doesn't work~apply for this situation, lol.**
**well... maybe you could do (lol):
if (object.boolean <> true) {
or, if the "not" works (lol):
if (not object.boolean <> false) {
this is very amusing to me, laughs. having fun with all the combinations of positives, negatives, double negatives, and etc.
wait... how smart is quest (so, Alex...), can it handle these? lololol (just joking around).
--------------
also, I never thought of using an int attribute instead, using the computer byte system of ZERO (0) and ONE (1), hehe.
would it be a string attribute or an integer attribute, btw ???
actually... this is could be used as like a switch too:
switch (object.string_attribute) {
case ("0") {
xyz
}
case ("1") {
xyz
}
case ("2") {
xyz
}
}
~or~
switch (object.integer_attribute) {
case ("0") {
xyz
}
case ("1") {
xyz
}
case ("2") {
xyz
}
}
and...
would this be able to work... or would you have to use a string~integer return function to retrieve the object.string~integer_attribute ??? (this seems overcomplicated, so you probably wouldn't need a return function, as I'm likely over thinking again, lol).
As I'm learning more and more of coding... I'm finding myself starting to over think a lot of stuff now... ARGH !!! Doing more complicated coding than is needed...is this normal (but very annoying side effect) when people learn to code more, or is it just me?