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

AVEVA™ XR Studio

nkFcFloatIfStatement

  • Last UpdatedJan 24, 2023
  • 1 minute read

The nkFcFloatIfStatement node is an If statement that compares two float values.

  • The statement can compare operations and provide different results for each comparison.

  • The comparison operations are chosen by connecting the appropriate input nodes.

  • When no comparison operations are True, then the default input is used.

  • The comparison order is the same as the listing order in the Result Parameters section.

Requirements

At least A,B and the default, and one more result parameter, must be connected.

Limits

All result parameters must have the same value as size.

Output

Same as size.

Code example

This is an example of the nkFcFloatStatement node.

<nkFcFloatIfStatement name="nNodeName" size="3" A="1" B="0" greater="nNodeName" equal="nNodeName" default="nNodeName"/>

General parameters

Hint

  • This is a hint to the compiler.

  • Values:

    • None: Lets the compiler decide.

    • Branch: Evaluates only one side of the if statement, depending on the condition.

    • Flatten: Evaluates both sides of the if statement and choose from the resulting values.

Size

  • The size of the result parameters

  • Limits: [1..4]

Comparison Parameters

A , B

  • Size: 1

  • These are the values to be compared.

Result Parameters

greaterEqual

  • Value if(A >= B)

lessEqual

  • Value if(A < = B)

equal

  • Value if(A == B)

notEqual

  • Value if(A != B)

greater

  • Value if(A > B)

less

  • Value if(A < B)

default

  • Value when no preceding comparisons are true

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in