Condition and Arguments seem not to be same evaluated #188
-
Hello everybody, I have an issue with the following logic: Please check the example here: Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi Ivan var result = Smart.Format("TEST: {OrderNumber:choose(Test214):{}|other number}", parsed); you will get "other number" in the ouput, if the |
Beta Was this translation helpful? Give feedback.
Hi Ivan
From the format string it's hard to figure out, what you would like to achieve: What does
True
orFalse
in terms of theOrderNumber
mean? I guess you would like to use theChooseFormatter
or theConditionalFormatter
. Did you take a look at the samples in the Wiki?If you change your example to
you will get "other number" in the ouput, if the
OrderNumber
is not "Test214".Hope this helps to get started.