Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: Making comments in ExpressionEvaluator
Reply to topic
Author Message
snovotill



Joined: Feb 8, 2013
Posts: 80

PostPosted: Jan 12, 2014 3:39 AM    Post subject: Making comments in ExpressionEvaluator

I absolutely LOVE that I can make comments directly within the formulas I enter into ExpressionEvaluator, and BioEra is smart enough to compile the expression but ignore my comments =)

Out11=Out1; //Save current value before calculating new below.
Out1=In1<Out4&&Out1>=0?-1: In1>Out5&&Out1<=0?1: Out1; //Flag breath direction.
Out2=(LastIn1>Out2)?In1: (Out11<Out1)?In1: Out2; //Update max or Reset or Keep.
Out3=(LastIn1<Out3)?In1: (Out11>Out1)?In1: Out3; //Update min or Reset or Keep.
Out4=Out2-In2/In3; //Upper threshold based on P2P trend.
Out5=Out3+In2/In3; //Lower threshold based on P2P trend.

This is brilliant because it's so easy to read what I was calculating when I come back to fix my own bugs ;o)
Thanks Jarek!
Reply to topic