Some examples, using the echo command:
echo {filterstring 1 hello world} -works
echo {strleft abcdeghasd 7} - doesn't work
echo {strFind -find b -string abcabc} - works
echo {sum 1 5} - doesn't work
echo {round 5.82} - works
Those last two are particularly frustrating as they both access the
same php file and are very similar commands, yet one works and the
other doesn't. Most of my other commands that output strings fail
(except ifthen).
Any ideas? Is this a problem with yubnub or a problem with my commands?
Any thoughts are appreciated. Thanks.
-Allen
--
Jon Aquino (Victoria BC Canada)
http://jonathanaquino.com
I was doing some more tests with ifThen and noticed that this command
works:
echo {ifthen -value1 1 -value2 1 -test equal -then Yub -else Nub}
And this one doesn't:
echo {ifthen -value1 1 -value2 1 -test equal -then Yub Nub nub -else
Nub}
The only difference is that the second one has a parameter that has two
words in it. All the commands I'm having issues with are passing
multiple words in a single parameter. Looking at 'filterstring', I
noticed that that command doesn't produce an error even with multiple
words... So, why the different behaviour? All the commands that give
errors have [no url encoding], 'filterstring' doesn't.
I created 'ifthen2' which doesn't have [no url encoding] and it works
just fine.
So, I guess I need the [no url encoding] removed from a bunch of my
commands (why did I have it there in the first place?). Please remove
it from: ifThen, strLength, strReplace, sum, strFind, strLeft,
Multiply, Round, Subtract, Divide, strRight, wordcount.
Thanks Jon, and sorry for all the changes. Hopefully this will fix some
problems others are having (and not cause more problems).
-Allen
For instance, in the command trib
(http://yubnub.org/kernel/man?args=trib ) I had to change & to %26 to
get it to work. I just tried a new version of the command with
"ifthen2" and it works fine with the &.
Brian
--
Jon Aquino (Victoria BC Canada)
http://jonathanaquino.com
-----Original Message-----
From: Yub...@googlegroups.com [mailto:Yub...@googlegroups.com] On Behalf Of
Allen Ormond