Get number from 4 website and compare

Hi everyone.

I want to find the price of 4 products on 4 websites and then compare them to find the highest price or lowest price.

Example the numbers which I got from Web1, Web2, Web3, Web4 are dt1, dt2, dt3, dt4.

How to do this ?

Thanks in advance!

Hi @trunghai,

you can use this below code to find the big number/price in 4

  1. create Max Variable
  2. If (dt1>dt2) - > max = dt1 else max = dt2
  3. if (max>dt3) → max = max else max = dt3
  4. if (max>dt4) - > max = max else max = dt4
1 Like

Thanks you so much :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.