selectedAny

Prev Next

Description

Returns whether or not any of the specified app object(s) have a valid value.


Input Parameters

Name Type Required Description
tokensOrNames Text Yes Comma-seperated list of app object token(s) and/or name(s)

Returns

Type: Boolean

Returns whether or not any of the specified app object(s) have a valid value.


Examples

// check if either object [10] or object [15] is selected
var all = app.selectedAny("[10], [15]");
debug.log(all);
JavaScript

Remarks

This function is useful if you need to test whether or not at least one app object within a group currently has a valid value.

Token Syntax

This function uses the native app object token syntax, which refers to the ID of an object within your app that is enclosed in square brackets.

Example: [10]