=proto void duk_push_boolean(duk_context *ctx, int val); =stack [ ... ] -> [ ... true! ] (if val != 0) [ ... ] -> [ ... false! ] (if val == 0) =summary
Push true (if val != 0) or false (if val == 0) to the stack.
=example duk_push_boolean(ctx, 0); /* -> [ ... false ] */ duk_push_boolean(ctx, 1); /* -> [ ... false true ] */ duk_push_boolean(ctx, -3); /* -> [ ... false true true ] */ =tags stack