Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

IF AND in LTspice?

Status
Not open for further replies.

Flyback

Well-Known Member
Hi,
I want to do the following in LTspice, but it complains about the syntax...

V=IF( ((V(comp1)<-1)&(V(gate2) <1)) ,+1 ,-1) )

Do you know how?
 
1678045033429.png

Like this.
 

Attachments

  • Draft2.asc
    1,015 bytes · Views: 274
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top