# Examples

You can download complete flow examples from the Tutorials & Examples category in the Community.

Here are some expression examples:

Compare two values for numerical equality;
`+var1 = +var2`

Compare two values for lexical equality;
`++var1 = ++var2`

Compare two values for boolean equality;
`!var1 = !var2`

Get last element of an array;
`array[-1]`

Format current date using string interpolation;
`"Today is {Now;dateFormat;MMM dd}"`

Format current date using an expression;
`"Today is " ++ dateFormat(Now,"MMM dd")`

Split text into an array of lines;
`split(text,"\n")`

Get a random line of text;
`shuffle(split(text,"\n"))[0]`

Get filename from a path;
`split(path,"/")[-1]`

Parse a hexadecimal number;
`+"0x{hexvar}"`

Parse a binary number;
`+"0b{binvar}"`

Get start of day timestamp;
`timeMerge(Now, 0)`

Please use the forum if you need help with an expression.