« first day (3322 days earlier)      last day (1619 days later) » 

11:01 PM
@forresthopkinsa as in imacros.net? Nope, sorry
 
word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12 word13 word14 word15 word16 word17 word18 word19 word20 word21 word22 word 23 word24 word25 word26

and I need

word7 word8 word9 word10 word11 word12 word13 word14 word15 word16 word17 word18 word19 word20
 
@JBis my neither, it's making it hard to fix this guy's problem. it looks like it uses the Velocity template language, or something like it
@Pijes thanks, that's much clearer
so I'm gonna go out on a limb and say that your JS code -- that is, the text inside EVAL(...) -- is not being executed, or its output is not being used
you can tell because it's not splitting it up into words
the output your code in that paste *should* be producing would be:

word8
me* neither
 
||> 'word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12 word13 word14 word15 word16 word17 word18 word19 word20 word21 word22 word 23 word24 word25 word26'.split(' ').slice(6,20)
 
@JBis ["word7","word8","word9","word10","word11","word12","word13","word14","word15","word16","word17","word18","word19"] Logged: ``
@JBis ["word7","word8","word9","word10","word11","word12","word13","word14","word15","word16","word17","word18","word19","word20"] Logged: ``
 
^
but it looks like the js code is not running at all so
 
11:09 PM
IMacro can save you a so much time. Sometimes know to be hard but when you find solution everything work like charm. I don't know what words will be. This is just random example
 
@JBis if James ran eval statements inside an IIFE then we would be able to use return statements
but I'm not sure if that would break the implicit returns
 
 SET !VAR1 EVAL("'{{!EXTRACT}}'.split(' ').slice(6,20)")
something like that?
 
I'd give that a shot @Pijes , let us know if it works
 
@JBis I think that will give me from 6 to 20 characters but I will try and tell you
 
29 mins ago, by forresthopkinsa
you're on the right track, but s.split(' ')[7] is only going to give you one of the words -- the eighth one. Why the eighth one? because arrays are zero-indexed
arrays are zero-indexed
||> 'one two three four five'.split(' ').slice(2, 3)
 
11:12 PM
@forresthopkinsa ["three"] Logged: ``
 
@JBis You are the boss. Something like that. Thank you guys
 
it worked?
 
@forresthopkinsa Yes
 
very cool. Good catch Jbis
 
Thank you again
 
11:12 PM
👍
 
@forresthopkinsa hmmm. What about a cheap check if "return" is included then run in a iife?
No problem @Pijes :)
 
That could work, but would that break inner functions? e.g. array.map with braces
||> ['a', 'b'].map(x => { return x + 'z' });
 
@forresthopkinsa ["az","bz"] Logged: ``
 
hmm it seems like a solution may not be worth the time/complexity
but you know your code a lot better than I do
 
Or i could do like ||f> prefix means it will run in function
idk if its worth it tho
 
11:19 PM
hmm, I don't know any use cases besides users forgetting that returns need to be implicit, like I did earlier
so probably not worth a new command
 
Or an even cheaper method, we try catch and and if the error is "Illegal return statement" we rerun it in a function
 
11:40 PM
that's a great idea
perfecto
 

« first day (3322 days earlier)      last day (1619 days later) »