cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Econ
Regular Visitor

Add Text and Function within If Statement

Hello Everyone

 

My Questions might seem simple enough, but i cant get it to work....

Basically just using an If as an output in my mail

This works just fine as it should

if(equals(int(outputs('Get_a_row')?['body/Bieri Daily']),2),'true','false')

 

Using an excel row as output works just fine aswell:

if(equals(int(outputs('Get_a_row')?['body/Bieri Daily']),2),outputs('Get_a_row')?['body/Bieri Daily'],'false')

 

But when i try to combine an excel row AND some text, it just refuses to be recognized as valid code:

if(equals(int(outputs('Get_a_row')?['body/Bieri Daily']),2),'The number is:'outputs('Get_a_row')?['body/Bieri Daily'],'false')

 

Does anyone know how i can work around this? It must be possible to have this as an output, right?

Greatly appreciate any suggestions, thanks fellas!

1 ACCEPTED SOLUTION

Accepted Solutions
ManishJain
Solution Sage
Solution Sage

Hi @Econ ,

 

what you are doing in true part is concatenating the string and output . So use concat and it should be:

 

if(equals(int(outputs('Get_a_row')?['body/Bieri Daily']),2),concat('The number is:',outputs('Get_a_row')?['body/Bieri Daily']),'false')

 

Thanks

View solution in original post

1 REPLY 1
ManishJain
Solution Sage
Solution Sage

Hi @Econ ,

 

what you are doing in true part is concatenating the string and output . So use concat and it should be:

 

if(equals(int(outputs('Get_a_row')?['body/Bieri Daily']),2),concat('The number is:',outputs('Get_a_row')?['body/Bieri Daily']),'false')

 

Thanks

View solution in original post

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (42,797)