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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,039)