MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: if statement to compare strings



******    message to minivend-users from Larry Leszczynski <larryl@furph.com>     ******

Hi Russ -

> ... I know how to do it in perl ...

Then there's no reason you can't do it in perl in your pages!


> [if [value shipo]ne[value billo]]
>    Shipping Name: [value name_first] [value name_last]
> Shipping Address: [value address]
> City, State, Zip: [value city], [value state]  [value zip]
> Shipping Country: [value country]
> [/then]

Maybe something like (untested):

[perl values]
   my $out = "";
   if ( $Safe{'values'}{'shipo'} ne $Safe{'values'}{'billo'} ) {
      $out = <<EOF;
Shipping Name: $Safe{'values'}{'name_first'} $Safe{'values'}{'name_last'}
Shipping Address: $Safe{'values'}{'address'}
City, State, Zip: $Safe{'values'}{'city'}, $Safe{'values'}{'state'}
                                                 $Safe{'values'}{'zip'}
Shipping Country: $Safe{'values'}{'country'}
   }
   $out;
[/perl]


Larry Leszczynski
larryl@furph.com
--
  furph, Inc.	WWW/Unix/Windows Solutions	734-513-7763 (voice)
info@furph.com	   http://www.furph.com		734-513-7759 (FAX)

-
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


Search for: Match: Format: Sort by: