ifCvar

TaystJK

Needs review. The inventory/provenance evidence is recorded, but some behavior, options, or attribution still lacks a direct user-facing source.

Tests a cvar against conditions in order and executes the command belonging to the first match. Conditions support literal string equality; numeric $=, $!=, $>, $<, $>= and $<= comparisons; $contains; $beginswith/$startswith; $endswith; $else; and values read from another cvar with a leading $. The argument count includes the command itself.

At a glance

Field Value
Category Engine & diagnostics
Module engine-shared
Also registered in engine-shared
Renderer All / not renderer-specific
Network scope client-only — Local to the client/UI/renderer.
Derivation documented
Confidence medium
In-game xdocs No
In-game menu No
Syntax ifCvar <cvar> <setting> <argument-count> <command...> [<setting> <argument-count> <command...> ...]
Cheat protected No

Arguments and gating

Arguments: cvar, setting, argument-count, command, ....

Provenance

Origin: TaystJK

Dated project introductions

Authored dates come from the exact registration’s first content commit, PR dates identify when work was proposed to each project, and integration dates come from each first-parent mainline. A project merging first does not override earlier upstream authorship or submission.

Project Authored PR opened Integrated Commit Relationship
TaystJK 2022-04-03 2022-04-20 1dd571383a0d Ultimate origin
jaPRO 2022-04-03 2022-04-20 1dd571383a0d Shared integration commit

Evidence