Number comparison



  • 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 : 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?

    You have the data in a variable as a string, convert it to a number. Through parseInt()

    0_1558062093244_5c140fc7-cdd1-4eb5-8dae-fe40d1e76112-изображение.png

    Here is the test script


    Read more about data types here.



  • @fox

    Thank you very much. This will help a bunch in alot of projects.


Log in to reply