[Kst] if then else in equations?

Nicolas Brisset nicolas.brisset at free.fr
Thu Sep 20 19:04:40 UTC 2012


Hi Matt,

> Back when George switched to yacc/bison, I thought my favorite
> operator, ?:, was added.  I do recall George sending out an email
> asking which operators should be added and I can’t believe I would
> have forgotten the ternary operator. Then again, maybe there is a
> reason it wasn't added?  If not, this is what is needed here.
I just tried "([Phi (V2)]>0) ? [Phi (V2)] : 0" and it does not work.
Maybe it's just a syntax issue, but I'd have thought this should work :-(

Nicolas


More information about the Kst mailing list