Check whether a specification array contains an audience.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_cfg_has_audience

Purpose

Check whether a specification array contains an audience.

Description

Inspects the audience field in each configuration-variable specification.

Arguments

  • $1 — Name of the specification array.
  • $2 — Required audience: system or user.

Returns

0 when an entry matches the desired audience; 1 otherwise.

Usage

  sgnd_cfg_has_audience SGND_SCRIPT_GLOBALS user