Conditional Judge

The conditional judge makes his judgement based on the configured fact. Only if the prosecution is true, the verdict is pronounced. Otherwise, the next judge tries to pass verdict.

Configuration

Verdict

Property

config.tx_locate.judges.[0].verdict

Data type

string

Default

unset

Description

The name of the verdict to be enforced.

Fact

Property

config.tx_locate.judges.[0].fact

Data type

string

Default

unset

Description

The name of the fact to be checked.

Prosecution

Property

config.tx_locate.judges.[0].prosecution

Data type

string

Default

unset

Description

The Prosecution. Only if this value is present in the fact, a verdict can be pronounced.

Example

config.tx_locate.judges {
    100 = Leuchtfeuer\Locate\Judge\Condition
    100 {
        verdict = redirectToPageDE
        fact = browserAcceptLanguage
        prosecution = de
    }
}