On Wed, Aug 28, 2002 at 11:08:14AM +0530, Javeed SAR wrote:
> Hi all,
>
> I am using 2 conditional statements, as follows:
>
>
>
>
> if (($vbpcount==1) ||($dspcount==1))
> { die "\n\nThe element ($PN) is not allowed to be added to
> ClearCase,Because a project already exists.\n";
> }
>
> elsif(($vbpcount==1) && ($dspcount==1))
> {die "\n\nThe element ($PN) is not allowed to be added to ClearCase,Because
> a project already exists.\n";
> }
>
> Can i combine both this conditional statements into one single statement?
> Because my die statements for both conditions is same.
I think you can just delete the elsif part. If a || b is true then by
definition a && b will be true. || is an inclusive or, not the
exclusive or we usually use in natural language.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]