Solution for people who may have a similar problem:
" $('#Logs .log-line').slice(13).remove(); "
By default it says slice(500), adjust this number according to your needs. 13 was enough for me.
image.png
Issue
Scraped var 1: 20000
System resource var : 100000
ScrapedVar1<SystemResourceVar
It returns it as False.
When I do the following:
Scraped var 1: 20000 -> Convert it to a new variable 020000
System resource var : 100000
ScrapedVar1<SystemResourceVar
It returns it as True.
The issue at hand;
THe Scraped var can be from 1 to 1000000000.
Is there any better way to do this?
@huntenkill said in Number comparison:
Issue
Scraped var 1: 20000
System resource var : 100000ScrapedVar1<SystemResourceVar
It returns it as False.When I do the following:
Scraped var 1: 20000 -> Convert it to a new variable 020000
System resource var : 100000ScrapedVar1<SystemResourceVar
It returns it as True.The issue at hand;
THe Scraped var can be from 1 to 1000000000.
Is there any better way to do this?
You have the data in a variable as a string, convert it to a number. Through parseInt()

Here is the test script
Read more about data types here.