Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with a view---errrors

Status
Not open for further replies.

92Turbo

IS-IT--Management
Mar 18, 2003
5
0
0
US
@If(HD_SeverityLevel = &quot;1&quot; & @Adjust( Ticket_Time; 0; 0; 0; 4; 0; 0 );< @Today; &quot;<-- Past Due!!&quot;; &quot;&quot;);

HD_SeverityLevel = &quot;2&quot; & @Adjust( Ticket_Time; 0; 0; 0; 24; 0; 0 );< @Today; &quot;<-- Past Due!!&quot;; &quot;&quot;);

HD_SeverityLevel = &quot;3&quot; & @Adjust( Ticket_Time; 0; 0; 0; 48; 0; 0 );< @Today; &quot;<-- Past Due!!&quot;; &quot;&quot;);

All I get is this errors

inappropriate unary ussage of an operator.&quot;

What I'm i doing wrong

thanks
 
You have a &quot;;&quot; in the wrong place:
change
HD_SeverityLevel = &quot;1&quot; & @Adjust( Ticket_Time; 0; 0; 0; 4; 0; 0 );< @Today

to

HD_SeverityLevel = &quot;1&quot; & (@Adjust( Ticket_Time; 0; 0; 0; 4; 0; 0 )< @Today)

regards
Gary
 
@If( HD_SeverityLevel = &quot;1&quot; & (@Adjust( Ticket_Time; 0; 0; 0; 4; 0; 0 )< @Today); &quot;<-- Past Due!!&quot;; &quot;&quot;;
HD_SeverityLevel = &quot;2&quot; & (@Adjust( Ticket_Time; 0; 0; 0; 24; 0; 0 )< @Today); &quot;<-- Past Due!!&quot;; &quot;&quot;;
HD_SeverityLevel = &quot;3&quot; & (@Adjust( Ticket_Time; 0; 0; 0; 48; 0; 0 )< @Today); &quot;<-- Past Due!!&quot;; &quot;&quot;)

Hi Gary,

THe code check out but 90% of the doc's read :
:Error Incorrect

Also could i use @TextToTime ( &quot;Today&quot; ) instead, and how do i add the else statement(condition not meet display &quot;OK&quot;

Sorry for my lack of knowledge I'm very new to Notes

thanks
Leo
 
The @if function works as follows (straight from the help docs!)

@If( condition1 ; action1 ; condition2 ; action2 ; ... ; condition99 ; action99 ; else_action )

so your code should be

@If( (HD_SeverityLevel = &quot;1&quot; & (@Adjust( Ticket_Time; 0; 0; 0; 4; 0; 0 )< @Today); &quot;<-- Past Due!!&quot;);
(HD_SeverityLevel = &quot;2&quot; & (@Adjust( Ticket_Time; 0; 0; 0; 24; 0; 0 )< @Today); &quot;<-- Past Due!!&quot;);
(HD_SeverityLevel = &quot;3&quot; & (@Adjust( Ticket_Time; 0; 0; 0; 48; 0; 0 )< @Today); &quot;<-- Past Due!!&quot;);
&quot;OK&quot;);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top