Trubchevsk
Experience: Beginner
Platform: tos
Trading: stocks
Posts: 61 since May 2011
Thanks Given: 40
Thanks Received: 79
|
def a = if true 1 else 0
def b = if true 2 else 0
def c = if true 3 else 0
def d = if true 4 else 0
def result = max(max(max(a,b),c),d);
the value of "result" variable will be 4, not "D";
just for information....to assign text values use ""
def a = "a";
def a = "/es"
also if you want to name your variables such as 1a,1b,1c (name starts witn a number) use "" also
def "1a" = 16434656;
|