Conditional statement

Hi,
I’m trying to create an application which calculates the hours for the employees. I need to make an if statement that refer if the working hours is less than 8 hours per day, the app will show a message: " Working hours are incomplete "
but I didn’t find any place in knack that let me make the conditions.
can anyone guide me with this??

Hi @Ali

It depends on exactly what you mean by “Message” and also how this data is held/calculated.

You could, for example, use a validation rule to show if less than 8 hours is entered.

Or use a display rule in a table view to highlight records where the figure for the day is less than 8.

Or a Conditional rule to calculate a value of “Working hours incomplete” - and this could be displayed in tables or details views.

I am trying to say that Knack has a host of options when it comes to displaying information for users of highlighting data discrepancies etc.

Come back with more details if you want more specific advice.

Julian

Thanks Julian for your advice,
What I want is an app that let the users who are the employees to enter their working hours when they start the work, and when they finish. for example:
Name: Ali
Start Time: 8:00 A.M
End Time: 4:00 P.M
then the app will calculate the time automatically, if the time was less than 8 hours, the app will show a warning message " Working hours are incomplete " .