Sorry, I don't believe in this solution. Best way I think is sorting the variables and then comparing each two subsequent variables, like:
var %sortvar = $sorttok(%var1 %var2 %var3 %var4 %var5 %var6, 32)
var %counter = 1
var %unique = $true
while (%counter < 6) {
if ($gettok(%sortvar, %counter, 32) == $gettok(%sortvar, $calc( %counter + 1 ), 32) {
set %unique $false
}
inc %counter
}
if (%unique) {
... code for unique variables
}
else {
... code for equal variables
}
Btw, $sorttok( .. variables .. , 32, n) will perform a numeric sort, without ", n" it's alfabetic