string-calc icon indicating copy to clipboard operation
string-calc copied to clipboard

Logical operators

Open hamzaze opened this issue 5 years ago • 1 comments

( 293 == 561 || 293 == 562 || 293 == 563 || 293 == 564 ) ? 1.02 : 1

The result should be 1, but I'm getting the error instead. Uncaught ChrisKonnertz\StringCalc\Exceptions\NotFoundException: Error: Detected unknown or invalid character identifier. in /home/dev5printaj/vendor/chriskonnertz/string-calc/src/ChrisKonnertz/StringCalc/Support/UtilityTrait.php:26.

I suppose logical operators are not covered.

hamzaze avatar Apr 26 '19 07:04 hamzaze

Hello,

that's true, they are not built-in.

Should be possible to add them without any problems though.

chriskonnertz avatar Apr 29 '19 16:04 chriskonnertz