diff --git a/examples/03-conditions.sfm b/examples/03-conditions.sfm index dfe6c3fa7..b97a11d98 100644 --- a/examples/03-conditions.sfm +++ b/examples/03-conditions.sfm @@ -61,4 +61,20 @@ every 20 ticks do end output to b -end \ No newline at end of file +end + +-------------------- + +-- Complex conditionals, AND and OR + +every 20 ticks do + if a has >= 10 iron_ingot and a has >= 5 coal then + input 1 redstone_block from a + output to b + end + + if a has >= 1 sand or a has >1 red_sand then + input 1 glass from a + output to b + end +end