Re: using 2 If statements



Karmel.Abdeljawad@xxxxxxxxx wrote:
Hey all,
I am using Verilog-a.. well my code is something like :

If(Vdata[1]==V(avss) & V(data[0] == V(avss)begin
if (V(in) <= -vmind)
state = 2 *V(vin);
end

Now is the first if statement evaluated and then if its satisfied the
second if statement will be evaluated? or are they both evaluated at
the same time?


Thanks
KARMEL

They are evaluated in sequence. In fact if the first condition in the first if state is false, the second condition isn't evaluated either.

~jz
.



Relevant Pages

  • Re: Conditional Formatting With Grades
    ... Say your grades ... First Condition ... Second Condition ... Third Condition ...
    (microsoft.public.excel.worksheet.functions)
  • CountIF formula
    ... I need to run a countif formula, with 2 conditions on two different ... columns, The first condition is that column D matches cell A1, ... the second condition is that column K is greater than 0. ...
    (microsoft.public.excel)
  • Re: conditions in Excel
    ... Assume the first condition is not met then you say you ... Frank Kabel ... Peter L wrote:> Hi Frank and thanks for your answer> If it not too mutch trubble I would like to have both a worksheet> formula or a VBA solution? ... > In your answer you wrote that:"your first and second condition are> identical but you want different ...
    (microsoft.public.excel.programming)
  • Re: Double check of variables.
    ... > In some examples of a PHP implementation I saw the following: ... the first condition. ... it does NOT check the second condition. ... alway be CERTAIN that your variable being tested actually exists before ...
    (comp.lang.php)

Loading