Replicate Case function

Viewing 3 reply threads
  • Author
    Posts
  • October 21, 2017 at 7:05 AM #25474

    Tim Flick
    Participant

    Wondering if there is a way to simulate the case function in tapforms to go beyond three parameters

    Thanks Tim

    October 21, 2017 at 7:21 AM #25476

    Tim Flick
    Participant

    I’m guessing just nesting if function

    October 21, 2017 at 11:03 PM #25489

    Brendan
    Keymaster

    Hi Tim,

    Yes, nesting IF statements would do it as I’ve seen other customers do. But it would be interesting to know how that would look like with a CASE() function. Perhaps CASE(A = 1, B, C = 2, D, E = 3, F, ..., Z). The first parameter is the condition, the second parameter is the value, the third parameter is the condition, the fourth parameter is the value, etc. It would have to take a minimum of 2 parameters and have to have an even number of parameters. Just at thought.

    December 1, 2017 at 3:35 PM #26386

    Chris Knight
    Participant

    I would like to vote for the proposed CASE() function. Not high priority as nesting is working for me but it can get really ugly and difficult to read and debug.

    ~Chris

Viewing 3 reply threads

You must be logged in to reply to this topic.