コード風プロンプト例2a ネストされたif:elseが外側に属する (インデントベース)
Validates required arguments and prints "foo" if both are true, otherwise "bar" if the first is false. Use to test conditional logic with nested if/else structures.
/plugin marketplace add kokuyouwind/claude-plugins/plugin install code-like-prompt@kokuyouwind-plugins{"condition_a": boolean, "condition_b": boolean}Emulate the following code internally (without using external tools or interpreter) with environment: $ARGUMENTS
Output only what print() commands would output. Do not show any explanations, code, variables, or other messages.
# Validate required arguments
if condition_a is None:
raise ValueError("Required argument 'condition_a' is missing")
if condition_b is None:
raise ValueError("Required argument 'condition_b' is missing")
# Logic
if condition_a:
if condition_b:
print("foo")
else:
print("bar")