User Manual

GETTING STARTED


OTHER EDITIONS


LAUNCHERS


MODULES


PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support

ALL USER MANUAL VERSIONS

Ignition 8.1. Offline Version (04/2021)
Ignition 8 Online Version
Ignition 7.9 Online Version
Ignition 7.8 Online Version

Deprecated Pages

SDK Documentation

Employees

Sign In

Skip to end of metadata
Go to start of metadata

This function is used by Ignition's Expression language.

Description
This function, whose name stands for "binary enumeration," takes a list of booleans, and returns the index (starting at 1) of the first parameter that evaluates to true.
Syntax

binEnum(value, [value, ...])

  • Parameters

Integer value - Any number of values.

  • Results

Integer - The index of the first true value.

Examples
Code Snippet
binEnum(0, 1, 0) //Returns 2.
Code Snippet
binEnum(0, false, 15, 0, 23) //Returns 3 (the index of the 15 - any non-zero number is "true").
  • No labels