You're currently browsing the Ignition 8.0 docs. Click here to view the latest docs.

This function is used by Ignition's Expression language.


This function is only available in Transaction Group Expression Items and Expression Tags.

This function returns True if the given value has changed since the last time the Expression Item was run. Setting the optional boolean argument "include quality" to true means a quality change will make this function return true.


hasChanged(value[, includeQuality][, pollRate] )

  • Parameters

object value - The number value to check for change

bool includeQuality - Optional. A flag that indicates if a quality change will also trigger this tag.

The following feature is new in Ignition version 8.0.4
Click here to check out the other new features

int pollRate - Optional. The poll rate in milliseconds. Only applicable on Expression Tags when the Execution Mode is set to Event Driven. All other Execution Modes will ignore this parameter.

The pollRate argument was not present in Ignition 7, but is required in Ignition 8.0.4 for Event Driven Expression Tags. This means that any Expression Tags that are in the Event Driven Execution Mode will either need to have the Execution Mode changed or the poll rate added in on upgrade to 8.0.4, or the function will run once when the value changes and then will not work properly again.

  • Results

bool - True if the value has changed since the last time the expression was evaluated, False if not.

Code Snippet
hasChanged({[default]Station 1/Status},True) //would return true if the referenced tag has changed in value or quality since the last group execution
  • No labels