I downloaded the script after updating the last answer which was the following (I added it but do not understand that section).
[GridCategory("Parameters")]
public int DmiPeriods
{
get { return dmiPeriods; }
set { fast = Math.Max(1, value); }
}
Another simple question on unrelated note:
I tried to add a condition:
if (DM(DmiPeriods).DiPlus >= 20)
error msg that I cant compare this variable to numeric value!!!
how can I get around that?
Thanks.
Comment