Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Manual Logger

If

  • Last UpdatedNov 22, 2022
  • 1 minute read

Syntax

If(Condition, TrueResult, ElseResult)

Arguments

Argument

Data Type

Description

Condition

Boolean

Valid expression that will evaluate to True or False.

TrueResult

Any

Any expression that will be returned when Condition argument evaluates to True.

ElseResult

Any

Any expression that will be returned when Condition argument evaluates to False.

Returns

Returns the value of the TrueResult argument if the Condition argument is "true", and returns the value of the ElseResult argument if the Condition argument is "false."

Examples

If(CurrentValue("TI001.ML") < 32,CollectNow(),Skip())

This example prompts for data collection when the current value of the TI001.ML tag is less than 32; otherwise the tag is not prompted for collection.

TitleResults for “How to create a CRG?”Also Available in