5 ms·
This is neat. I was just looking for something like this the other day. Does it support loops? I don't see any example like that. Basically I wanted to load a
by losvedir 7y ago
This is neat. I was just looking for something like this the other day.
Does it support loops? I don't see any example like that. Basically I wanted to load a search results page and check something about each of the results on the page.
- hliyan 7y agoOur current thinking is to not provide branching mechanisms (loops, conditionals) by design. Both to keep the language simple, but more importantly, to force script writers to create one test per each scenario. If you need an if statement, that's probably an indicate you need two tests. For your use case, you'll need to write a macro and then call it the number of times you need. how to check for $something in search results for $thing ... end check for "foo" in "bar" check for "foo2" in "bar" check for "foo3" in "bar" That works?