cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Kovalenko
Level 6

Type conversion (BOOLEAN to STRING)

Hello,

I cannot figure out how I can convert BOOLEAN type to STRING... Anybody knows?
Labels (1)
0 Kudos
(3) Replies
Dan_Galender
Level 10

You can use the NumToStr function using a BOOL value for the second (NUMBER) parameter.
0 Kudos
Kovalenko
Level 6

What about converting NUMBER to BOOL? Is there any special function?
0 Kudos
Dan_Galender
Level 10

No. Just use the assignment operator.

BOOLs are just NUMBERS that should contain either of the constants TRUE or FALSE (TRUE is 1 and FALSE is 0). But if used in a condition, a BOOL variable containing *any* value other than 0 evaluates to TRUE.
0 Kudos