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

Returns the length of the argument, which may be a string or a dataset. If the argument is a string, it returns the number of characters in the string. If the argument is a dataset, it returns the number of rows in the dataset. Will return zero if the argument is null.

The following feature is new in Ignition version 8.1.8
Click here to check out the other new features
The len function can now be used with lists, sets, and tuples. 

Syntax

len(value)

  • Parameters

Object value- The starting object, either a string, dataset, list, set, or tuple. 

  • Results

Integer - The length of the provided object.

Examples
Code Snippet
len("Hello World") //Returns 11.
Code Snippet
len({Root Container.Table.data}) //Returns the number of rows in the table.
  • No labels