mredge73
Member
I have a question about using alias and string matching:
I have this test script (test.ash)
Now I am trying to build an alias to make use of it but for some reason the strings are not matching correctly:
But it works fine like this:
I don't understand why the string is not matching but it is probably because I wrote the alias wrong, any help will be appreciated!
I have this test script (test.ash)
Code:
void stringtest(string match)
{
string TestString= "Monkey";
print(TestString,"olive");
if (TestString==match)
print (match+" works","green");
else
print(match+" does not match","red");
}
Code:
> alias test => ash import <test.ash> stringtest("%%");
String successfully aliased.
test => ash import stringtest("%%")
> test Monkey
Monkey
Monkey does not match
Returned: void
Code:
> alias test => ash import <test.ash> stringtest("Monkey");
String successfully aliased.
test => ash import stringtest("Monkey")
> test
Monkey
Monkey works
Returned: void