Prettify conditional logic readme example

This commit is contained in:
David Evans 2017-10-25 00:41:16 +01:00
parent 1929e3ffb1
commit 8767140cd7
1 changed files with 2 additions and 0 deletions

View File

@ -72,11 +72,13 @@ state over Foo: Foo is ponderous
``` ```
title At the bank title At the bank
begin Person, ATM, Bank
Person -> ATM: Request money Person -> ATM: Request money
ATM -> Bank: Check funds ATM -> Bank: Check funds
if fraud detected if fraud detected
Bank -> Police: "Get 'em!" Bank -> Police: "Get 'em!"
Police -> Person: "You're nicked" Police -> Person: "You're nicked"
end Police
else if sufficient funds else if sufficient funds
ATM -> Bank: Withdraw funds ATM -> Bank: Withdraw funds
repeat until all requested money handed over repeat until all requested money handed over