and one more WikiSh question while we're at it:

and again, i'm not understanding why this won't work - i want to check the length of a string, and if it's too long, i'd like to print something different out... this is what i had hoped would work:

        {(set -s word = "blammo")}
result: {(wikish if ${#word} -gt 10; then; echo "string too big"; else; echo "string just right"; fi)}

however, the result i get is

        result = {#word} -gt 10)
        string too big


any ideas on how i can get the string length to be treated like a number and then successfully pushed thru the if statement?

thanks
adam
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to