Difference between revisions of "Before"

From Keyfax Wiki
Jump to: navigation, search
(Setup)
(Demonstration)
Line 36: Line 36:
  
 
===Demonstration===
 
===Demonstration===
 +
 +
Fixed date '''15-10-2016''' is before user entered date '''17-10-2019''' the result returns '''True'''
  
 
[[File:beforefunction8.png]] [[File:beforefunction9.png]]
 
[[File:beforefunction8.png]] [[File:beforefunction9.png]]

Revision as of 10:37, 25 April 2019

Checks if one date is before another date.

Example One

Two fixed values are compared.

Beforefunction1.png

The date value of one databox CompanyData.Expressions.Date is written into Examples.Date and the expression BeforeDate Fixed date checks if CompanyData.Expressions.Date (15/10/2016) is before the value in the Examples.Date.BeforeDate Fixed (14/10/2016) expression

If true it'll display a message with True, if false then one with False.

Setup

Beforefunction2.png

Beforefunction3.png

Demonstration

Beforefunction4.png

Beforefunction5.png

Example Two

Check if a fixed value is before a user entered value

The same as the above example but in this example, it checks if CompanyData.Expressions.Date is before a user entered date. The user enters a date into Script.Date01. CompanyData.Expressions.Date then writes 15/10/2016 into Examples.Date and is evaluated against the expression Before Date01

Setup

Beforefunction6.png

Beforefunction7.png

Demonstration

Fixed date 15-10-2016 is before user entered date 17-10-2019 the result returns True

Beforefunction8.png Beforefunction9.png

Beforefunction10.png Beforefunction11.png

Example Three

Check if a user entered value A is before another user entered value B. As the examples above but this will compare two date values that are both user entered.

User enters dates into Script.Date01 and Script.Date02. An expression Before Date01 then runs against the value entered in Script.Date02 and it returns true or false.

Setup

Beforefunction13.png

Beforefunction14.png

Demonstration

Beforefunction15.png Beforefunction16.png

Beforefunction17.png

Beforefunction18.png Beforefunction19.png

Beforefunction20.png