Practice · Control Flow Lab
Approval Router
Why this is here
The request amount is random on every load, so a script that hardcodes one branch will pass by luck about half the time and fail the rest — the only way to reliably pass is a real if/else keyed off the number itself. Amounts over $5,000 need escalation; $5,000 and under clear automatically. The amount is formatted with a thousands separator and a currency symbol on purpose — strip it before comparing. req-currency is always "USD" and never changes; it's there so an over-conditioned script that branches on it too gets caught out.
Request amount: USD
Telemetry
Iterations: 0
Elapsed (s): 0
Verdict: PENDING