LTspice AND statement

Flyback

Well-Known Member
Hi,
Do you know whats wrong with the attached AND statement in LTpsice?
 

Attachments

  • AND.png
    8.5 KB · Views: 458
I'm reasonably certain that there is no AND function. LTspice is NOT a GP programming language. Do you even search the help page(s)?
 
There is an AND operator, represented by the ampersand symbol '&'. Try your IF statement with the two conditions separated by the & symbol.

The following is from the HELP page on Behavioral Sources

 
You want V=IF(v(gate)<1&I(L5)<0.7,0,1)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…