Prettify conditional logic readme example
This commit is contained in:
parent
1929e3ffb1
commit
8767140cd7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue