[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] "Explicit" If / pattern matching w/ a value
****** message to minivend-users from Cory James Trese <digital@adenine.frognet.net> ******
:Minivend 3.14-5:
List --
I have this code on one of my pages...
--snip--
[value name="name_letter" set="T"]<br>
[loop search="fi=userdb
ra=yes"]
[loop-code]:
[if explicit]
[condition]
$last_name = '[loop-data userdb last_name]';
$name_letter = '[value name_letter]';
return 1 if $last_name =~ /^$name_letter/;
return 0;
[/condition]
Last Name Matches First Letter "[value name_letter]"
[else]
nope...
[/else][/if]<br>
[/loop]
--/snip--
It does not work. I would really like for it to work ;) When I replaced
the user of $name_letter / [value name_letter] the if works just fine (and
even produces the output I want!) Once I make the letter I'm looking for
based on a value, nothing matches. Doesn't seem to make any errors
either.
Anyone have a clue for me?
Cory Trese
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list