Beeeeh, yep, of course...!, that's normal...!widilye wrote:I tried the script codeAppearance at promptCode: Select all
SET !EXTRACT https://imagerouter.tokopedia.com/img/nocache/repsys/diamond-3.gif SET Rep_Badge EVAL("var s='{{!EXTRACT}}'; var x,y,z; x=s.split('/'); y=x[6].split('.'); z=y[0]; z;") PROMPT EXTRACT:<BR>{{!EXTRACT}}<BR><BR>Rep_Badge:<SP>_{{Rep_Badge}}_ PAUSE
However the storage results on the csv fileThis confuses me because there is a difference in the prompt display with the storage results in the .csv file. Are there any other suggestions of the script code changes that should be used.
'SAVEAS TYPE=EXTRACT' will save the full Content of the '!EXTRACT' Var at that Moment...
Your "diamond-3" Value is contained in the Var that I called 'Rep_Badge'...; when you want to do your 'SAVEAS', you need to populate '!EXTRACT' with the Data that you want to include in the 'SAVEAS', with a "SET/ADD !EXTRACT {{Rep_Badge}}"...
That Step was not needed previously as you were applying 'EVAL()' directly to '!EXTRACT', which is a bad Practice I told you, (or like I kind of called it, a "fake-semi-advanced Technique to impress Beginners and Script Kiddies"), and can be very dangerous if you do several Extracts in your Script, especially if you don't understand the Principle..., but you need to understand at least a little bit how Variables work...
I'm starting to wonder what you meant with "Please help me to complete my case study."... What did you mean with "case study"...?