web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Return value is true =...
Power Apps
Answered

Return value is true => false

(0) ShareShare
ReportReport
Posted on by 60

Hi!

 

I use a lookup to see if a client has a specific module activated. 

 

When the lookup returns a true, the visibility of an image must be false and vice versa.

 

It would be easy if the image must be visible when the module is true, because I can then just use the lookup.. But is there a way to use the opposite?

 

Like use a ! before the formule: 

Visibility of image : !Lookup(get boolean return)

 

This I tried, but didn't work. 

 

I also have tried:

If(Lookup(get boolean return) = true ; false ; true)

If(Lookup(get boolean return) = Ja; false ; true)

If(Lookup(get boolean return) = "Ja"; false ; true)

 

But I get the error that types cannot compare.

 

 

 

Categories:
  • Verified answer
    Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    If the lookup returns an actual Boolean you should be able to just do

    not(Lookup(...))
  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    I think its probably more likely that your return type is a record rather than a boolean as the ! prefix should work

     

     !(Lookup(datasourceName, condition).booleanPropertyName)

     

  • Verified answer
    Celia Profile Picture
    60 on at

    The ! wasn't working, but Not(Lookup()) did!!

     

    So prefix Not

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard