Skip to main content
Version: v2

Boolean Functions

binary

binary(): int

Returns an integer 1 if the receiver is true, 0 otherwise

Input example

<b>{{ true.binary() }}</b>

Output

<b>1</b>