F Flyback Well-Known Member Apr 7, 2024 #1 Hi, Do you know whats wrong with the attached AND statement in LTpsice? Attachments AND.png 8.5 KB · Views: 227
ronsimpson Well-Known Member Most Helpful Member Apr 7, 2024 #2 Did not know there was a AND. Upvote 0 Downvote
Papabravo Well-Known Member Most Helpful Member Apr 7, 2024 #3 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)? Upvote 0 Downvote
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)?
ronsimpson Well-Known Member Most Helpful Member Apr 7, 2024 #4 I searched both google and LTspice help and did not find anything. Upvote 0 Downvote
Papabravo Well-Known Member Most Helpful Member Apr 7, 2024 #5 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 Upvote 0 Downvote
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
alec_t Well-Known Member Most Helpful Member Apr 8, 2024 #6 You want V=IF(v(gate)<1&I(L5)<0.7,0,1) Upvote 0 Downvote