Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

using if statements in interface

Hi all, 

I'm creating an interface that records and calculates the working hours for employees, the idea is if the working hours are less than 8 it should display: " Working hours are incomplete " , and if it was less than 0 it should display: " insert your working hours correctly please " 

I made this expression, but when the value is less than 8 even it was less than 0 it always display : " Working hours are incomplete " 

here's the expression: 

{
a!richTextItem(
if(
ri!WorkingHours = "8",
"Working hours are complete",
if(
8 > ri!WorkingHours > 0,
"Working hours are not complete",
if(
ri!WorkingHours < 0,
"insert working hours correctly please"
)
)
)
)

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data