<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="GENERATOR" content="GtkHTML/4.4.4">
</head>
<body>
Hi,<br>
<br>
I'm working with some linear predictions and want to print out when some limits are about to be reached.<br>
<br>
Today I'm using LIMIT to filter out when we are between the 2 thresholds (say 90-100%).<br>
Then I'm taking the FIRST and LAST value for this sequence - that gives me the 90-time and 100-time.<br>
Then I print these out using a line like:&nbsp; 'GPRINT:minpred:Reaching 90 on \: %c\n:strftime'<br>
<br>
The problem is that if the minpred-time is undefined due to that we don't have a &quot;growing enough&quot; trend, and therefor can't estimate when we will hit the 90-% limit,<br>
we end up sending undef or 0 to strftime - which will then print&nbsp; Jan 1 01:00:00 1970.<br>
<br>
Is there a way that I can check these values - and only do GPRINT if I have a valid timestamps?<br>
Is it possible with RPN to do this?<br>
I do want to use the strftime as that allows me to format the unix timestamp before printing it.<br>
<br>
Are there other ways?<br>
I could probably export the prediction data first - in a pre-graphing processing - and only add the values if they are good.<br>
But if it can be done in one single step , that would be great.<br>
<br>
/Johan
</body>
</html>