View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0031161||Runner||General||Public||2019-07-11 10:12||2019-09-06 18:42|
|Reporter||Scott Dunbar||Assigned To||Russell Kay|
|Priority||Low||Severity||C - General||Reproducibility||100%|
|Target Version||2.2.4||Fixed in Version||2.2.4|
|Summary||0031161: General: The constant 0.5 evaluates to true when part of a boolean expression|
If (0.5) evaluates to false. This is consistent with the GMS2 documentation that says values > 0.5 is true.
if (not 0.5) evaluates to false as well. If 0.5 was false, then "not 0.5" should have been true.
if (0.5 or false) evaluates to true. If 0.5 was false, then this expression should have been equivalent to "false or false".
It would seem that the value 0.5 evaluates to false if used by itself in an `if` statement. But evaluates to true any time it is part of a boolean expression. There is some inconsistency here in the truthiness of 0.5.
|Steps To Reproduce||1. Import project|
2. Run project
3. Observe results shown in message boxes
|Tags||No tags attached.|
|1.4 Found In|
|2.x Runtime Found In||22.214.171.1244|
|2.x Runtime Verified In||126.96.36.1991|