selectedAny
  • 17 May 2021
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

selectedAny

  • Dark
    Light
  • PDF

Article Summary

Description

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


Input Parameters

NameTypeRequiredDescription
tokensOrNamesTextYesComma-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);

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]


What's Next