tommy152
Starting Member
8 Posts |
Posted - 20 Feb 2011 : 21:42:25
|
Trying to modify the distributor block in the IAFD script since sometimes they display Distributor and sometimes Studio (Distributor).
So far I have
#DISTRIBUTOR# #STARTREADWEB# #FINDLINE#=<dt>Distributor</dt>#01##ONERROR#=*ASK* #IF# #00#<>#01# #FINDLINE#=<dd>#01# #ONERROR#=*STOP* #FIND#=.htm">#02# #ONERROR#=*STOP* #COMPUTECURSOR#=+5 #PUTCURSOR#=#01# #FIND#=</a>#02# #ONERROR#=*STOP* #TAKEWORD#=#03#,#01#,#02# #TAKEDISTRIBUTOR#=#03# #TAKESTUDIO#=#03# #GOTO#=ENDDISTRIBUTOR #ENDIF#
#FINDLINEPREVIOUS#=<dt>Studio (Distributor)</dt>#01##ONERROR#=*ASK* #FINDLINE#=<dd>#01# #ONERROR#=*STOP* #FIND#=.htm">#02# #ONERROR#=*STOP* #COMPUTECURSOR#=+5 #PUTCURSOR#=#01# #FIND#=</a>#02# #ONERROR#=*STOP* #TAKEWORD#=#03#,#01#,#02# #TAKEDISTRIBUTOR#=#03# #TAKESTUDIO#=#03# :ENDDISTRIBUTOR #ENDDISTRIBUTOR#
The first FINDLINE errors out when it can't find Distributor on the page saying it "Can't find the word on #FINDLINE# instruction <dt>Distributor</dt>Line: 386. If it couldn't find it, wouldn't it just write 0 to the variable? |
|