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

Getter Chain, Cast from Bool to Int?

Henrik.Juul
Adventurer

I have created an Information Point which basically works so now I also want to create a metric based on the return value.- Only thing is that the return value is a Boolean so how do I cast it to an Integer (with a Getter Chain I suppose)?

2 REPLIES 2

Mario.Morelli
Architect

Hi Hendrik, you can use normal toInt() or toString() for text values

Example

getBody().toInt()

or

getBody().toInteger()

Can't remember 100% if it's toInt()or toInteger()



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Learn more about me in the Community Member Spotlight Q & A

Thank you.

I got this to work based on a .Net application:
ReturnValue.Success().Convert.ToInt32()