Topic Options
#57923 - 03/26/21 01:29 PM PressTalk condition needed help
Sami786 Offline
OL Expert

Registered: 01/29/14
Posts: 393
Loc: Home
Hi Team, I'm in need of coding in PressTalk but I'm confused how to loop through multiple locations to find some values to condition my Post and Pre images.

data structure is as below
check from position 10-20 to find Form_Name '015A' and from position 21-30 to find the month @(21,4,5)and year @(21,7,10) dd/mm/yyyy.

Once the values are found then I need to code below

Pre = before June 2016
Post = after June 2016

If (Form_Name = '015A') and (Month =< 6 ) and (Active_Year =< '2016')
flag := Pre
Else
Flag := post
EndIf

Can you help me code this in PRessTalk or in a condition with many thanks.

THANKS






Edited by Sami786 (03/26/21 01:50 PM)
_________________________
Peace

Top
#57937 - 04/06/21 09:34 AM Re: PressTalk condition needed help [Re: Sami786]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 650
Loc: Québec, Canada
I am not sure what you expect from us?

The code you display has a little error in it:
Code:
Pre = before June 2016
Post = after June 2016

If (Form_Name = '015A') and (Month =< 6 ) and (Active_Year =< '2016')
flag := Pre
Else
Flag := post
EndIf


If (Form_Name = '015A') and (Month =< 6 ) and (Active_Year =< '2016')
should be
If (Form_Name = '015A') and (strtoint(Month) <= 6 ) and (strtoint(Active_Year) <= 2016).

Other than that, what help specifically do you need?
_________________________
♪♫♪♫
99 frigging bugs in my code
99 frigging bugs
Take one down
Code around
127 frigging bugs in my code
♪♫♪♫

Top
#57941 - 04/08/21 05:30 PM Re: PressTalk condition needed help [Re: Sami786]
Sami786 Offline
OL Expert

Registered: 01/29/14
Posts: 393
Loc: Home
that helped thanks
_________________________
Peace

Top