FUNCTION Constant "1500" -> VAR "Balance"
IF "<Balance>" Greaterthan "99.99"
IF "<Balance>" Lessthan "199.99"
PRINT SUCCESS
ELSE
IF "<Balance>" Greaterthan "199.99"
IF "<Balance>" Lessthan "299.99"
PRINT SUCCESS2
ELSE
IF "<Balance>" Greaterthan "299.99"
IF "<Balance>" Lessthan "499.99"
PRINT SUCCESS3
ELSE
IF "<Balance>" Greaterthan "499.99"
IF "<Balance>" Lessthan "699.99"
PRINT SUCCESS4
ELSE
IF "<Balance>" Greaterthan "699.99"
IF "<Balance>" Lessthan "899.99"
PRINT SUCCESS5
ELSE
IF "<Balance>" Greaterthan "899.99"
IF "<Balance>" Lessthan "999.99"
PRINT SUCCESS6
ELSE
IF "<Balance>" Greaterthan "999.99"
IF "<Balance>" Lessthan "1499.99"
PRINT SUCCESS7
ELSE
IF "<Balance>" Greaterthan "1499.99"
PRINT SUCCESS8
ENDIF
T
thanhlouis
@thanhlouis
4
Reputation
17
Posts
104
Profile views
2
Followers
0
Following
Posts made by thanhlouis
-
RE: OpenBullet - Nested IF Statement (TXT Utility)
-
RE: Help with If statements
response code or source ?
If response code:IF "<RESPONSECODE>" Contains "204" SET VAR "Present" "true" ENDIF
If source:
IF "<SOURCE>" Contains "204" SET VAR "Present" "true" ENDIF
-
RE: Parsing url token question
@jorbeto
Why not usePARSE "<ADDRESS>" LR "" "" -> VAR ""
?????
Print before parse for what ?Just
REQUEST GET "https://example.com" HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" HEADER "Pragma: no-cache" HEADER "Accept: */*" PARSE "<ADDRESS>" LR "token=" "" -> VAR "token"
<ADDRESS>not <address>
-
RE: How to work on multiple parsed data (need help with loops or smth)
Hope can help you:
REQUEST GET "https://pastebin.com/raw/C7Y8xJ8k" HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" HEADER "Pragma: no-cache" HEADER "Accept: */*" PARSE "<SOURCE>" REGEX "(\\d+)" "[1]" Recursive=TRUE -> VAR "id" IF "<id>" Contains "," FUNCTION CountOccurrences "," "<id>" -> VAR "count" FUNCTION Compute "<count>+1" -> VAR "count2" SET VAR "test" "0" WHILE "<test>" LessThan "<count2>" REQUEST GET "https://pastebin.com/raw/TvQ09uGi" HEADER "custom: <id[<test>]>" FUNCTION Compute "<test>+1" -> VAR "test" ENDWHILE ELSE FUNCTION Replace "\[|\]" "" UseRegex=TRUE "<id>" -> VAR "id2" REQUEST GET "https://pastebin.com/raw/TvQ09uGi" HEADER "custom: <id2>" ENDIF
-
RE: Parsing data from complex Html
Many ways can do that:
- LR + FUNTION REPLACE
PARSE "<SOURCE>" LR "<h2>Active Plan</h2>" "</p>" -> VAR "PLAN" FUNCTION Replace "<p>" "" "<PLAN>" -> CAP "Plan"
- LR + FUNTION TRANSLATE
PARSE "<SOURCE>" LR "<h2>Active Plan</h2>" "</p>" -> VAR "PLAN" FUNCTION Translate StopAfterFirstMatch=TRUE KEY "<p>" VALUE "" "<PLAN>" -> CAP "Plan"
- REGEX
PARSE "<SOURCE>" REGEX "<h2>Active Plan</h2>\\s+<p>(.*)</p>" "[1]" CreateEmpty=FALSE -> CAP "Plan"
And they will have the response not contain "Active Plan", you should use IF
Example:IF "<SOURCE>" Contains "Active Plan" PARSE "<SOURCE>" REGEX "<h2>Active Plan</h2>\\s+<p>(.*)</p>" "[1]" CreateEmpty=FALSE -> CAP "Plan" ENDIF
-
RE: Please help get information in source
REGEX
PARSE "<SOURCE>" REGEX "\[\\{\"id\":\"alpha.([a-z0-9]{32})\",\"nameLocalizationKey\":\"([a-zA-Z._]+)\",\"fulfillment\":" "[2]" -> VAR "2" PARSE "<SOURCE>" REGEX ",\\{\"id\":\"alpha.([a-z0-9]{32})\",\"nameLocalizationKey\":\"([a-zA-Z._]+)\",\"fulfillment\":" "[2]" -> VAR "3"
I'm learning regex haha. Hope can help you ^^
-
RE: Copy - Paste (Selenium OpenBullet)
Copy what ? On website ? If on website you can use action "GetText" or block Parse to "copy" text