On Wed, 2005-10-05 at 12:10 +0100, Alexey Melnikov wrote:
Kjetil, can I ask you to add your example how to work-around this issue
to the "variables" draft.
I added this text:
Note: The "relational" extension also adds a match type called
":value". This match type strips leading and trailing whitespace in
both values before comparing them. If it is desired to make
whitespace significant in the variable comparison, this can be
accomplished by prefixing and suffixing both values with any non-
whitespace character.
Example:
require "relational";
set "empty" "";
set "spaces" " ";
if string :value "eq" "${empty}" "${spaces}" {
# the above test succeeds
}
if string :value "ne" "X${empty}X" "X${spaces}X" {
# the above test succeeds
}
--
Kjetil T.