Skip to main content

getVariable()

Last updated 31/01/2024

Example

This code is checking if the ISBN or Title variables have values using the getVariable() function on the Five object in the format five.getVariable('variableName').

Check if the variable has been set
if (five.getVariable('ISBN') !== '' || five.getVariable('Title') !== '') {
// execute code if the ISBN or Title exists
}