Bale
Minion
Could someone clue me in as to what is wrong with this?
I'd expect the first attempt to produce YAY, but somehow it won't match "item". Unsurprisingly, this works perfectly as an ash script, but I really want to make an alias which is bugging out because I cannot match parameters.
Code:
[COLOR="#808000"]> alias tester => ash string var = "%%"; print(var); if(var == "item") {print("YAY", "green");} else abort("bad");[/COLOR]
String successfully aliased.
tester => ash string var = "%%"; print(var); if(var == "item") {print("YAY", "green");} else abort("bad");
[COLOR="#808000"]> tester item[/COLOR]
item
[COLOR="#ff0000"]bad[/COLOR]
[COLOR="#808000"]> tester nope[/COLOR]
nope
[COLOR="#ff0000"]bad[/COLOR]