mirror of
https://github.com/fccview/cronmaster.git
synced 2025-12-26 23:48:15 -05:00
17 lines
430 B
Bash
17 lines
430 B
Bash
# @id: if-else-basic
|
|
# @title: Basic if/else condition
|
|
# @description: Simple conditional logic with error handling
|
|
# @category: Conditionals
|
|
# @tags: if,else,condition,basic
|
|
|
|
# Basic if/else condition
|
|
# Change CONDITION to your actual condition
|
|
CONDITION="test"
|
|
|
|
if [ "$CONDITION" = "test" ]; then
|
|
echo "Condition is true"
|
|
# Add your logic here
|
|
else
|
|
echo "Condition is false"
|
|
# Add your alternative logic here
|
|
fi |