## Comparing 3 vars if defined.

## Comparing 3 vars if defined.

(OP)

I have a scripting problem .. not sure where to start.

I will have 3 vars. They could or could not be defined. For any defined var, I need to check that the string is identical to other define vars.

So for example I could have :

$x=NOW IS THE TIME

$y=NOW IS THE TIME

$z=NOW IS THE TIME

OR

$x=NOW IS THE TIME

$y=

$z=Now ISnt THE TIME

or

$x=NOW IS THE TIME

$y=

$z=

or any other combination thinkable.

Thanks in advance

I will have 3 vars. They could or could not be defined. For any defined var, I need to check that the string is identical to other define vars.

So for example I could have :

$x=NOW IS THE TIME

$y=NOW IS THE TIME

$z=NOW IS THE TIME

OR

$x=NOW IS THE TIME

$y=

$z=Now ISnt THE TIME

or

$x=NOW IS THE TIME

$y=

$z=

or any other combination thinkable.

Thanks in advance

## RE: Comparing 3 vars if defined.

## CODE

Keith

www.studiosoft.co.uk

## RE: Comparing 3 vars if defined.

Thank Keith .. sheez .. now that I see it, it looks too easy ... should have been able to figure that out. Guess sometimes I just become blind ... cant "see" it ... thanks again.

## RE: Comparing 3 vars if defined.

I haven't tested it, but something like this should do:

## CODE

-- Chris Hunt

Webmaster & TragedianExtra Connections Ltd

## RE: Comparing 3 vars if defined.

My latest offering would be.

## CODE

Keith

www.studiosoft.co.uk

## RE: Comparing 3 vars if defined.

## CODE

The only special case that you didn't specify is what should happen if none of them are defined.

- Miller