From 3584d1c644a28ee7fbf459d04334219124049f0b Mon Sep 17 00:00:00 2001 From: Chris Moates Date: Thu, 25 Sep 2025 17:56:35 -0400 Subject: [PATCH] Add AND/OR Example to conditions.sfm --- examples/03-conditions.sfm | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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