Pages: [1]
  Print  
Author Topic: Generate Attributes, support for function "choose"  (Read 899 times)
tennenrishin
Full Member
***
Posts: 176


WWW
« on: March 24, 2013, 09:26:08 PM »

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
« Last Edit: March 24, 2013, 11:01:34 PM by tennenrishin » Logged
Marius
Administrator
Hero Member
*****
Posts: 1794



WWW
« Reply #1 on: March 25, 2013, 10:07:38 AM »

Hm, do you have looping over attributes in mind? Would not be the Loop Attributes operator a valid choice then?
Logged

Please add [SOLVED] to the topic title when your problem has been solved! (do so by editing the first post in the thread and modifying the title)
Please click here before posting.
tennenrishin
Full Member
***
Posts: 176


WWW
« Reply #2 on: March 29, 2013, 11:09:39 PM »

Not really. I just think it can be a useful function for composing certain expressions, which is probably also why spreadsheets support it.
Logged
Pages: [1]
  Print  
 
Jump to: