View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0031161||Runner||General||Public||2019-07-11 10:12||2019-07-12 14:34|
|Reporter||Scott Dunbar||Assigned To||Russell Kay|
|Priority||Low||Severity||C - General||Reproducibility||100%|
|Target Version||Fixed in Version|
|Summary||0031161: General: 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||220.127.116.114|
|2.x Runtime Verified In|