https://github.com/open-automation/simple-expression
Just makes it easier and more contextual what can already be done within script expressions.
Did not think that would accept a modulus operator but I suppose it makes sense. Very good to know!freddyp wrote: Taking the "Number of pages % 4" example of the screenshot, that would be a condition with variables like this:
[Switch.Calculation:Expression="[Stats.NumberOfPages]%4"] - Equal to - 0
Equal to 1 would be the condition for being 3 pages short, etc.
I knew about this one, and it is very helpful.freddyp wrote:Another case where Switch - Calculation is useful and that is not mentioned in the movie is that it allows you to cast a string to a number.