Welcome! Log In Create A New Profile

Advanced

Re: 2 variables inside if() ?

October 22, 2010 04:05PM
Thank you very much for your reply,

I know for definite both variables are set and are the same, eg:

[code]set $var1 'yes';
set $var2 'yes';
if ($var1 ~ $var2) {
...
}[/code]

Returns:
[code]*1 "$var2" does not match "yes"[/code]

So seems like the second variable is considered a string and not a variable.
Subject Author Posted

2 variables inside if() ?

untamed October 22, 2010 12:42PM

Re: 2 variables inside if() ?

António P. P. Almeida October 22, 2010 01:50PM

Re: 2 variables inside if() ?

untamed October 22, 2010 04:05PM

Re: 2 variables inside if() ?

Maxim Dounin October 22, 2010 04:18PM

Re: 2 variables inside if() ?

untamed October 23, 2010 12:55AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 192
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready