Expression Language Built-In Variables

Modified on Thu, Nov 30, 2023 at 1:59 PM

Built-In Variables

A number of "built-in" variables are provided as part of the Expression Language.  These can be used simply wrapped in the standard ${  } Expression wrapper.  They can only be used as part of Expression Language.



How to Use These

These built-in variables can be used, like the Boolean constants true and false directly, without further qualification and without quotes (emphatically without quotes), directly in Expressions.  

Examples


Date Examples


${today} - This gives the value "today's date" in ready-to-print MM/dd/yyyy hh:mma format.

${now} - This gives an "as accurate as possible" current date and time in the same MM/dd/yyyy hh:mma format.


To use "today" as a comparator you need a "raw" or 'non-String' version.  This is available as "today_raw" or "now_raw".

rw:dateCompare(row.someUsefulDate, today_raw)   


 

School Year Example


The schoolYear variable gives the current system setting for the School Year.   This is a String.  E.g. 2024-25, 2025-26.

${schoolYear}







Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article