Hello,
I will show you a simple and concrete example of each function float that we can have in Openbullet 2
to know how to use them :
float num = 0;
BLOCK:HttpRequest
url = "https://books.toscrape.com/catalogue/page-3.html"
TYPE:STANDARD
$""
"application/x-www-form-urlencoded"
ENDBLOCK
BLOCK:Parse
input = @data.SOURCE
leftDelim = "<p class=\"price_color\">£"
rightDelim = "</p>"
RECURSIVE
MODE:LR
=> VAR @parseOutput
ENDBLOCK
for(int i = 0; i < parseOutput.Count; i++)
{
BLOCK:Compute
input = $"<parseOutput[i]>"
=> VAR @computeOutput
ENDBLOCK
num = num + computeOutput;
}
BLOCK:Parse
input = @num
MODE:LR
=> CAP @SumOfPrices
ENDBLOCK
BLOCK:Ceil
DISABLED
input = @SumOfPrices
=> VAR @ceilOutput
ENDBLOCK
BLOCK:Round
DISABLED
input = @SumOfPrices
decimalPlaces = 3
=> VAR @roundOutput
ENDBLOCK
BLOCK:Floor
DISABLED
input = @SumOfPrices
=> VAR @floorOutput
ENDBLOCK
BLOCK:TakeMinFloat
DISABLED
first = @num
second = @SumOfPrices
=> VAR @takeMinFloatOutput
ENDBLOCK
BLOCK:TakeMaxFloat
DISABLED
first = @num
second = @SumOfPrices
=> VAR @takeMaxFloatOutput
ENDBLOCK
BLOCK:RandomFloat
DISABLED
minimum = 55
maximum = 200
=> VAR @randomFloatOutput
ENDBLOCK
WannaCry