Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example we could write a Macro called isGreaterThanOne with the expression if($args[1] > 1, 1, 0). Then instead of writing if( out.AppleHarvestDate < toDate('20210101')1, 1, 0) we could write isGreaterThanOne(_out.AppleHarvestDate). Where _out.AppleHarvestDate is set to be $args[1] in this case. If what ever $args[1] is set to be is > 1 it will return 1 else it will return 0. 

...