Generate Attributes, support for function "choose"

tennenrishin
tennenrishin New Altair Community Member
edited November 5 in Community Q&A
Can we request a function (that can be used, for example, in Generate Attributes) that generalizes 'if'?
choose(1,a,b,c)==a
choose(2,a,b,c)==b
choose(3,a,b,c)==c
with variable number of arguments
Tagged:

Answers

  • MariusHelf
    MariusHelf New Altair Community Member
    Hm, do you have looping over attributes in mind? Would not be the Loop Attributes operator a valid choice then?
  • tennenrishin
    tennenrishin New Altair Community Member
    Not really. I just think it can be a useful function for composing certain expressions, which is probably also why spreadsheets support it.