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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

funcion if

(0) ShareShare
ReportReport
Posted on by 8

Buenas Tardes

 

Tengo un campo que se llamado km. reales cambio gomas y cuando esta en 0 quiero que escriba un texto y cuando el mismo es mayor que otro campo quiero que escriba otro texto en el email

 

si  ( km reales cambio gomas=0, texto 1, si (km. reales cambio gomas<km. carga nafta;  texto2;texto3))

 

si el texto incluye una funcion adddays() como se escribe dentro del mismo

 

espero su ayuda

 

un saludo y muchas gracias

 

ute

 

@ute

 

 

Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    Hola @ute !!
    Vamos a suponer que has almacenado el valor de tu campo en una variable que llamaremos KmRealesCambioGomas de tipo entero (int). En ese caso la expresión que buscas podría ser de este tipo /
    Lets assume you stored the value of the field in a Power Automate variable called KmRealesCambioGomas of type int. I guess the following expression can do the magic:

     

    if(equals(variables('KmRealesCambioGomas'),0),'texto1','texto 2')

     

    Ahora supongamos que también has almacenado tu segundo campo en una variable que llamaremos KmRealesCambioNafta de tipo entero (int). LA expresión que incluye una doble condición anidada sería / 
    Now let's assume you stored the value of the second field in a Power Automate variable called KmRealesCambioNafta of type int. I guess the following expression that is handling nested conditions can do the magic:

     

    if(equals(variables('KmRealesCambioGomas'),0),'texto1',if(less(variables('KmRealesCambioGomas'),variables('KmRealesCargaNafta)),'texto 2','texto 3'))

     


     Para construir un texto combinando expresiones WDL y caracteres, te recomiendo la función concat() / Finally, in order to build a string by combining characters and WDL expressions, my suggestion is to use concat() function:

     

    concat('REvisa en un taller las gomas de tu carro antes de ',addDays(utcNow(),2),' por tu seguridad')

     


    Más sobre funciones WDL aquí / More on WDL functions here:
    Reference guide for functions in expressions - Azure Logic Apps | Microsoft Docs

    ¡Ánimo!

  • ute Profile Picture
    8 on at

    hola gracias por tu ayuda

    por esta formula if(empty('KM. Reales Cambio Gomas'),1,2) y tampoco funciono por el campo usando equals(nombre campo,1,2)

    km. reales cambio gomas es campo de excel  y esta en blanco y no me lo reconoce me pone siempre 2  y eso que en algunos campos hay numeros 50.000 35.000 

     

    que hice mal

     

    espeor tu ayuda

     

    mil gracias

     

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard