Buy Now
Sign in

Tranform int in string

rafaelscouto , March 08 at 18:29
Answered
R
rafaelscouto
Good afternoon, how do I turn one value into another?​
​​
​In my table, I get the status return, which is 0 for active or 1 for locked.​
​​
​How do I show the name Active or Blocked instead of 0 or 1
admin
Hi Rafael,
Call a switch function, the function values setup should be like this:
1:Active​
​0:Blocked
The "Data provider" should be set to the table field value: {var:table_name.row.field_name}
Best regards
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
R
rafaelscouto
Thanks,
its working