Scientific Calculator Plus Help : logic functions
Function name | Function info |
---|---|
::mfp::math::logic::and(1...) : and(x...) which accepts an arbitary number (> 0) of boolean parameters, returns logical and of the parameters. If a parameter's type is not boolean, it will be automatically converted to boolean first. |
|
::mfp::command::iff(3...) : iff(condition1, true_result1, condition2, true_result2, ..., false_result), where condition1, condition2, ... are boolean values, returns the result based on the condition values. For example, iff(true, 3, 2) returns 3, iff(3<2, 3, 2) returns 2 (because 3<2 is false), iff(3<2, 3, 5>4, 5, 6==9, 6, 9) returns 5, and iff(3<2, 3, 5<4, 5, 6==9, 6, 9) returns 9. |
|
::mfp::math::logic::or(1...) : or(x...) which accepts an arbitary number (> 0) of boolean parameters, returns logical or of the parameters. If a parameter's type is not boolean, it will be automatically converted to boolean first. |
|
::mfp::math::logic::xor(2) : Function xor calculates xor(x, y), where x, y can be any value. If x == y return false, else return true |