lucee.Component
commandbox.system.modules_app.system-commands.commands.assertTrue
Returns a passing (0) or failing (1) exit code whether truthy parameter passed. Command outputs nothing. Truthy values are "yes", "true" and positive integers. All other values are considered falsy . {code:bash} assertTrue `package show private` && run-script foo assertTrue ${ENABLE_DOOM} && run-doom assertTrue `#fileExists foo.txt` && echo "it's there!" {code}
| Method Summary | |
|---|---|
any
|
run(string predicate)
|
| Methods inherited from class lucee.Component |
|---|
| None |
| Method Detail |
|---|
predicate - A value that is truthy or falsy.