Login
Create

Comparisons and truth Last updated April 16, 2021

Info

The code used to gather this data is PPBW8. The table details the interactions between several values of varying datatypes when comparing them.

A green circle indicates that the comparison returns true, whereas a red value indicates that the comparison returns false. This table should be read row-wise, i.e. Null entity != Zero Vector, but Zero Vector == Null Entity.

The information in this image was last checked on April 16th 2021.

Uses

You might be able to abbreviate your actions by comparing between data types, especially regarding whether a variable is true or false. For example, if you want to check whether or not A is the zero vector, you could write A == TRUE or simply A instead of A != (0, 0, 0).

This resource also tells you how uninitialised variables will behave in comparisons.

Elo Hell Logo_H-M-Dark
Join the Elo Hell Workshops Discord