cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jgibout
New Member

fonction if

hello to all
I want to do several actions when if the condition is equal to true or false
If(Text(DataCardValue24)=Text(DataCardValue20);action1-action2-action3;action4-action5-action6)
that it is the syntax of this function
thank you for your help

1 ACCEPTED SOLUTION

Accepted Solutions
andrii1z
Frequent Visitor

Hi,

You need to use the right delimiters:

If(Text(DataCardValue24)=Text(DataCardValue20);action1;;action2;;action3;action4;;action5;;action6)

In another region it can be done as follows:

If(Text(DataCardValue24)=Text(DataCardValue20),action1;action2;action3,action4;action5;action6)

 

Also you can try using the Concurrent function for several actions.

View solution in original post

2 REPLIES 2
andrii1z
Frequent Visitor

Hi,

You need to use the right delimiters:

If(Text(DataCardValue24)=Text(DataCardValue20);action1;;action2;;action3;action4;;action5;;action6)

In another region it can be done as follows:

If(Text(DataCardValue24)=Text(DataCardValue20),action1;action2;action3,action4;action5;action6)

 

Also you can try using the Concurrent function for several actions.

v-qiaqi-msft
Community Support
Community Support

Hi@Jgibout

Based on the issue that you mentioned, do you want to operate the action based on the condition?

Could you please tell me:

  1. the DataCardValue24 and DataCardValue20, what is the column type corresponding to them, both are Text type?
  2. what is the corresponding controls to the DataCardValue24 and DataCardValue20?
  3. what is your data source?
  4. is there anything error message?

I assume that both of them are Text type, please try the following formula:

 

If(DataCardValue24.Text=DataCardValue20.Text;action1-action2-action3;action4-action5-action6)

 

If this could not solve your problem, please provide more details.

Best Regards,

Qi

Best Regards,
Qi

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (2,034)