Expression - Str to analog

3 Posts
2 Users
0 Likes
21 Views
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
Topic starter
 

Hello,

Do you know an expression we could use in AA to convert a string to an analog value?
example: string = '100'

Nico

 
Posted : 02/07/2020 10:40 am
LM
 LM
(@l-micaudarcinfo-com)
Posts: 383
Member Admin
 

Hello Nico,

I have an idea you could try:
(0 + YourString)

I think the expression engine will try to convert if the first element of the addition is a number.

++

 
Posted : 02/07/2020 1:12 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
Topic starter
 

Well done Ludo,
That works!

I realized now I had this issue long time ago and used the same trick but....i didn't remember :blush:

Nico

 
Posted : 02/07/2020 3:26 pm