For the complete documentation index, see llms.txt. This page is also available as Markdown.

Boolean truth

  • 0 is false.

  • Any nonzero integer is true.

  • TRUE is 1; FALSE is 0.

  • Logical operators normalize results to false/true.

boolean-truth.gpc
int enabled;

main {
    if(event_press(PS5_CROSS)) {
        enabled = !enabled;
    }
}

Last updated