Time Before

This conditional logic will determine if the current time of day is before 1pm and return yes if the current time of day is before 1pm or no if it is not.

Pseudocode

IF {{ TIME NOW }} IS LESS THAN 13:00
    Return "before"
ELSE 
    Return "after"
END

Form Setup

  1. Create a new logic under the Advanced tab in a form.

  2. Give the logic a name e.g. "Before 1pm"

  3. Choose Conditional as the logic type.

  4. In the If block, choose Definition for the left side of the expression and select Create New from the list

  5. In the popover that appears select Date Calculation as the Definition Type and give the definition a name so you can identify it later. In the Formula field "now". This will evaluate to the current date and time. Then tick the Include Time option and click Save.

  6. For the right hand side, choose Definition and select Create New from the list

  7. In the popover that appears select Date Calculation as the Definition Type and give the definition a name so you can identify it later. In the Formula field "Today 1pm". This will evaluate to the current date at 1pm. Then tick the Include Time option and click Save.

    The If block should look similar to:

  8. Set the Return value to Text and enter "yes"

  9. Set the Else Return value to Text and enter "no"

  10. Click Save.

results matching ""

    No results matching ""