Built-in FunctionsBoolean FunctionsVersion: v2On this pageBoolean 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>