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 Automate / ERRO AO USAR A AÇÕA IF...
Power Automate
Suggested Answer

ERRO AO USAR A AÇÕA IF ... END IF

(0) ShareShare
ReportReport
Posted on by
Com dúvidas de como resolver 2 ações (IF) formatados de formas diferentes com menssagens de erros diferentes. Qual a sintaxe correta para resolver este erro?

Segue imagem para análise



I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    2,318 Moderator on at
     
    This is a syntax issue, not a logic issue. Your IF condition must be written as a Power Fx logical expression, without quotes or text like “is equal to”. Use = and ensure the condition returns true/false.
    • IF conditions must return true or false
    • Do not use quotes
    • Do not use text like “is equal to”
    • Use = for comparison
    What is wrong with your code:
          If '%CurrentAttribute[ID_Pagina_FK]% is equal to 1' then
                If 'CurrentAttribute[Sequencia_Pagina] is equal to 1' then
    Problems:
    Condition is inside quotes
    Uses text instead of logic
    Uses is equal to (invalid syntax)
    Correct syntax (WORKING)
          If(CurrentAttribute.ID_Pagina_FK = 1,  
              /* actions if true */
             )
    Or:
           If(CurrentAttribute.Sequencia_Pagina = 1,    
                  DoSomething()
            )
    Simple rule to remember
    An IF condition must be logic, not text.
    It must return true or false.
     
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard