Basic Switch Statement is not working.



  • Rainer Grabowski

    Never used "switch" in a calculation field. Your ways 3 and 4 should work, but you have typos in it.
    (@Number of shifts applying for for == 0) --> a "for" too much

    var something = "@Number of shifts applying for" --> delete the quotation marks.
    And try it in a fresh calculation field. Once a calculation has been saved, the type is fixed and can't be changed. E.g. in your 4. example the result has been -3 and if you have saved it, it's a number type calculation field now. But you need a text type.


    Comment actions Permalink
  • Brock Taffe

    Thank you Rainer! Using a fresh calculation field worked!

    Also the typos from me being half awake haha.

    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk