Hi,
I don't figure out how to change the format of
#{141}
to simply
141
in order to be able to use it in a script like this:
a = #{141}
b = 1
c = a + b
Does anyone know how to do this? It is certainly very easy to do.
But I don't find it. :)
Forum topic · General Scripting
By Ewok · 2012-04-01
Hi,
I don't figure out how to change the format of
#{141}
to simply
141
in order to be able to use it in a script like this:
a = #{141}
b = 1
c = a + b
Does anyone know how to do this? It is certainly very easy to do.
But I don't find it. :)
kilad · 2012-04-07
use regular indexing
a = #{141} as array
c = a[1] + b
jos · 2012-04-07
omg, can't believe I said a.count
thanks for correcting
a.count --returns 141
jos · 2012-04-01
a.count --returns 141Ewok · 2012-04-01
That works.
Thanks a lot.
Ewok