Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to make a "if" statement in Ocean?

Status
Not open for further replies.

ravet

Member level 5
Joined
Sep 17, 2006
Messages
81
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Location
DSO
Activity points
1,762
hello
in ocean, i would like to check more than one condition in an if statement , is this true:

if((Vo==1 && Mo==1.2 && Io==1.2 && Lo==1.2) then
fmin=frequency(clip(VT("/net3") 8e-09 1.2e-8 )))

?
 

Re: ocean

if u want all the conditions to be true then the statement is fine, If u want any one of them is true then u can use or(||)
 

Re: ocean

Nop. That statement is not correct in ocean. Ocean is listp-alike...

its like this....

if( expression1 expression2 expression3),
This means if expression is true, do expression 2 else do expression3.

Added after 1 minutes:

Sorry, did not see one of the paranthesis... The statement is correct...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top