Platform Builder Forums

Main => Suggestions => Topic started by: Antikore on February 22, 2020, 01:56:49 PM

Title: as true and false are 1 and 0. Null should be -1
Post by: Antikore on February 22, 2020, 01:56:49 PM
Usign -1 to detect when something returns null I think can be very useful. I suggested something before to use it.

Null should be like -1, as true can be 1 and false 0.
Example of use
Code: [Select]
if key = null //If no key is pressed
{
}
Title: Re: as true and false are 1 and 0. Null should be -1
Post by: CGM on February 22, 2020, 02:42:42 PM
I suggested this. Only I suggested Key = none.