microsoft / RulesEngine

A Json based Rules Engine with extensive Dynamic expression support
https://microsoft.github.io/RulesEngine/
MIT License
3.47k stars 530 forks source link

Expression of type 'Boolean' expected #522

Closed MayueCif closed 9 months ago

MayueCif commented 10 months ago

I'm trying to determine if it's a type, prompting Exception while parsing expression Payload is string - Expression of type 'Boolean' expected

robin-o commented 9 months ago

The expression isn't C#, its using dynamic expressions. Try Is(Payload, \"string\").

abbasc52 commented 9 months ago

@MayueCif please try the solution suggested by @robin-o