Generate Attributes, support for function "choose"
tennenrishin
New Altair Community Member
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
choose(1,a,b,c)==a
choose(2,a,b,c)==b
choose(3,a,b,c)==c
with variable number of arguments
Tagged:
0
Answers
-
Hm, do you have looping over attributes in mind? Would not be the Loop Attributes operator a valid choice then?0
-
Not really. I just think it can be a useful function for composing certain expressions, which is probably also why spreadsheets support it.0