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 / Power Pages Liquid boo...
Power Apps
Answered

Power Pages Liquid boolean always true

(0) ShareShare
ReportReport
Posted on by 58

I have a yes / no field in dataverse.

 

How do I build a if else statement based on the value of that field? Everything I try has it evaluating as true.

 

{% assign id = request.params['id'] | escape %}
attestation value: {{entities.ddser_dspclaim[id].ddser_attestation}}
{% assign attest = entities.ddser_dspclaim[id].ddser_attestation %}
{{ attest }}
{% if id == null %}
{% entityform name: 'DSP Claim - New' %}
{% else if attest == "true" %}
true
{% entityform name: 'DSP Claim - Read Only' %}
{% else %}
false
{% entityform name: 'DSP Claim - Edit' %}
{% endif %}
 
erincannon1_0-1695645854174.png

 

 

I get this same result whether I say {% if attest %} or {% if attest == true %} I even get the same if I try {% if attest == 1 %}

 

Not sure what else to try?

Categories:
  • Verified answer
    erincannon1 Profile Picture
    58 on at

    I was using the wrong syntax.

     

    should have been elseif not else if

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard