PricingBlog

Viewport width, isBelow is true always, why?

  • uunicode-1286048896560136266

    unicodes

    1 year ago

    The problems is that isBelow is true every time, and for this reason I can not apply it.
    1286048896757272777-Screenshot_2024-09-18_at_22.37.05.png
    1286048897172635810-Screenshot_2024-09-18_at_22.37.32.png
  • uunicode-1286049857148158093

    unicodes

    1 year ago

    1286049856607092777-Screenshot_2024-09-18_at_22.42.39.png
    1286049856925728851-Screenshot_2024-09-18_at_22.42.15.png
  • ebud-1286060215266967685

    ebud

    1 year ago

    @unicodes is looks like you set up the console log to always print 'true'. Are you able to set the console log to the event data?
    🙏1
  • ebud-1286068189867937852

    ebud

    1 year ago

    1286068188819357746-image.png
    1286068189100380322-image.png
    1286068189393850444-image.png
    1286068189654155294-image.png
  • ebud-1286070494109634570

    ebud

    1 year ago

    not 100% sure why my example is logging 'undefined' rather than false tho 😅
  • uunicode-1286239550821109855

    unicodes

    1 year ago

    You are right; it should be on the event. I was assuming that when it's false, it doesn't fire any value, which is true, but the call still exists.
  • uunicode-1286241901795868683

    unicodes

    1 year ago

    @ebud It works in this way for me.
  • uunicode-1286242756997419050

    unicodes

    1 year ago

    1286242756930441228-Screenshot_2024-09-19_at_11.29.10.png
  • 1117897194134052925-@unicodes
    lucasg-1286312833700597803

    Lucas G

    1 year ago

    The If node is redundant here
  • uunicode-1286380491829940287

    unicodes

    1 year ago

    You are right! 😅
  • Thank you Lucas!
  • uunicode-1286380847812968488

    unicodes

    1 year ago

    Ahhh, forget about. It isn't Lucas because it return undefined instead of false. The solution should be fixing undefined.
  • I do not know why doesn't return false as expected.