Let>arr_1=1
Let>arr_2=2
let>arr_3=bingo
mdl>arr_{%arr_1%+%arr_2%}
I wanted to print "bingo" but not working...
Can't we do a arithmatic operation between a curli braces to get a value stored in an array?
Array value by arithematic operations inside curli braces
Moderators: Dorian (MJT support), JRL
-
- Pro Scripter
- Posts: 63
- Joined: Thu Dec 10, 2009 8:13 am
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
You would need to split it up:
Code: Select all
Let>arr_1=1
Let>arr_2=2
let>arr_3=bingo
Let>nVal={%arr_1%+%arr_2%}
Let>sVal=arr_%nVal%
MessageModal>sVal
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?