12 lines
200 B
Python

@flowx_block
def example_function(request: dict):
case = request["case"]
switch_dict = {
# Define your cases here
}
variable = switch_dict.get(case, "Invalid option")
return variable