function replace(s: string) :: string: if {_s} is not set: replace all "test" in {_s} with "&7" set {_a} to {_s} return {_a} else: set {_a} to "another test" return {_a}