Assert-Build

September 18, 2025 ยท View on GitHub

(assert) Checks for a condition.

Syntax

Assert-Build [[-Condition] Object] [[-Message] String]

Description

Scripts use its alias 'assert'. This command checks for a condition and
if it is not true throws an error with the default or specified message.

Parameters

-Condition
    The condition.
    
    Required?                    false
    Position?                    0
-Message
    An optional message describing the assertion condition.
    
    Required?                    false
    Position?                    1
Assert-BuildEquals