diff --git a/pages/common/if.md b/pages/common/if.md index 1844404df9..95108a4843 100644 --- a/pages/common/if.md +++ b/pages/common/if.md @@ -4,7 +4,7 @@ - Echo a different thing depending on a command's success: -`{{command}} && echo "success" || echo "failure"` +`if {{command}}; then echo "success"; else echo "failure"; fi` - Full if syntax: