cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Yvonzim
Resolver I
Resolver I

set Variable based on 2 conditions (variables)

Im stuck with this command:

 

i have 2 variables WorkSpace and NoWorkspace,

If WorkSpace =<0 and NoWorkspace=true a third variable BookError should be false.

 

Can someone help me with this?

 

Yvon

1 ACCEPTED SOLUTION

Accepted Solutions
MarvinBangert
Super User
Super User

Hi @Yvonzim 

you can just use this function:

If(And(Workspace <= 0,NoWorkspace),Set(BookError,false),Set(BookError,true))

Hope this helps!

 

Best regards
Marvin

If you like this post, give a Thumbs up. If it solved your request, Mark it as a Solution to enable other users to find it.

View solution in original post

1 REPLY 1
MarvinBangert
Super User
Super User

Hi @Yvonzim 

you can just use this function:

If(And(Workspace <= 0,NoWorkspace),Set(BookError,false),Set(BookError,true))

Hope this helps!

 

Best regards
Marvin

If you like this post, give a Thumbs up. If it solved your request, Mark it as a Solution to enable other users to find it.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,074)