Cannot define a rule with OR Function
Closed this issue · 5 comments
Hi team,
I encountered an issue where I can't define a rule condition using the OR function.
I tried using other elements and still got the same error message. Any suggestions?
If it's not possible to use the OR function for now then I think I'll use the ordinal element instead of fetching the input from existing archetypes.
@winnerng for which app is this so that I can try to replicate?
Also does this error come up when you try to use the "Execute tab"? If yes, I find that quite often that tab is bugged, but then if you use a fixture text in the "Test" tab everything works fine.
It's in the new guideline model I am working with, the Newsom score. I've just created a pull request so that you can get the files. And the error message also showed up when I saved the guideline thus the rule did not appear in when I open it using Notepad++ as well.
@winnerng there is a bug currently in GDL2 (not just the editor) with temperature units because of the degrees special character ''°".
A way to circumvent this problem is to check for the magnitude and the unit like this:
This way you get to wrap the °C or °F in single quotes and it's parsed as string.
@Hemiho I don't think you have the same problem because your units don't have a special character. I will need to look into your individual case, so please upload your models (if not done already) so that I can take a look.
Mine is fixed after applying Kostas' suggestion. Thanks