assert_istrue
Historical name for asserts.istrue.
📝Syntax
assert_istrue(condition)
assert_istrue(condition, message)
[res, msg] = assert_istrue(condition)
[res, msg] = assert_istrue(condition, message)
📥Input Arguments
Parameter Description
condition Logical scalar or array to test. Every entry must be true.
message Optional custom failure message.
📤Output Arguments
Parameter Description
res true if the assertion passes, false otherwise.
msg Assertion failure message, empty on success.
📄Description

assert_istrue is kept for compatibility.

For complete documentation, use asserts.istrue.

💡Examples
Historical call
assert_istrue(3 == 3);
Canonical call
asserts.istrue(true);
🔗See Also
asserts.istrueassert
🕔Version History
Version Description
1.0.0 initial version
2.0.0 documented as historical name for asserts.istrue
Edit this page on GitHub