Skip to content

Expression Requirement

Jeremie Rossignol edited this page Mar 15, 2018 · 3 revisions

Requirement that executes an expression to check whether the requirement is met. Can access data in the persistent data store.

REQUIREMENT
{
    name = Expression
    type = Expression

    // Title to use for the requirement when displaying it in Mission Control.
    // This is generally required for expression requirements, as there is no
    // logical default that can be generated.  Can be ignored if the requirement
    // is a child of a PARAMETER or is otherwise hidden.
    //
    // Type:      string
    // Required:  Conditional
    //
    title = Need astronauts with gumption

    // The expression to be executed is in the expression field.  It supports
    // arithmetic operators (+, -, *, /), boolean operators (&&, ||, !),
    // comparisons (<, <=, ==, !=, >=, >) and parenthesis.  It is able to
    // access data in the persistent data store.
    //
    // Type:      string
    // Required:  Yes
    //
    expression = CC_EXPTEST_Success == 1 || !CC_TestVal
}
Clone this wiki locally