cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
guyinazo
Advocate V
Advocate V

Quick question about nesting statement in and IF

So I have a block of more than one statement I want to run based on the condition of an IF statement.  If count <2 then do these three statement, but if not do these four statements....  What is the syntax to create that "block"

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Thorpe
Super User
Super User

You can use a semi colon to string them together. Example I am stringing var1 and 2 together if true and if false I am stringing var3 and 4.

 

If(count <2, Set(var1, "A"); Set(var2, "B"), Set(var3, "C"); Set(var4, "D"))



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Jeff_Thorpe
Super User
Super User

You can use a semi colon to string them together. Example I am stringing var1 and 2 together if true and if false I am stringing var3 and 4.

 

If(count <2, Set(var1, "A"); Set(var2, "B"), Set(var3, "C"); Set(var4, "D"))



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

I figured so...thanks for the answer

Helpful resources

Announcements
PA 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

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

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

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
Top Kudoed Authors
Users online (59,377)