F
Finn
Guest
I have an object with an object variable that is boolean (see screenshot).
When I check in the create event if the variable is boolean using "is_bool()" it will return "false".
-> Any ideas what could explain this behavior?
Note: The variable is not changed anywhere before to another type and not modified in any way.
Note: I tested whether instea dof using is_bool() I can use
" oVar_ability_newState == true || oVar_ability_newState == false "
This works see below in screenshot.
Another test:
returns " 0 " a.k.a. "false".
When I check in the create event if the variable is boolean using "is_bool()" it will return "false".
-> Any ideas what could explain this behavior?
Note: The variable is not changed anywhere before to another type and not modified in any way.
Note: I tested whether instea dof using is_bool() I can use
" oVar_ability_newState == true || oVar_ability_newState == false "
This works see below in screenshot.
Another test:
Code:
show_message( "is_bool()-test: " + string(is_bool(true)) );
Attachments
-
1.2 KB Views: 1
Last edited by a moderator: