not (!) tablet - still showing on ipad?

  • Hmmm... I thought that ! sign means 'except'. What if try "devices="all|!mobile|!tablet" ? in that case it is "all except mobile and tablets", where as in your code, maybe, the player is somehow confused FROM WHAT it should make that exception? *rolleyes*

    Well, just guesses, though...

    Regards,

    Alexey

  • it's wrong solution, because iPad is also tablet!
    Maybe:
    devices="!mobile|!android
    !android - for all adnroid device: mobile and tablet, !mobile - for all mobile device and platform, iPhone too.

    Panoreal — to make and see this wonderful world! *whistling*

  • Hi,

    there are 3 key-characters in the devices check syntax:

    | = OR - that means either the left OR the right condition must be true
    + = AND - that means the left AND the right condition must be true
    ! = NOT - that means the given check will be inverted (from true to false or from false to true)

    That means when you write:

    !mobile|!tablet

    that means:

    (NOT mobile) OR (NOT tablet)

    and on an iPad (as tablet) this check will result in:

    (TRUE) OR (FALSE)

    TRUE, because it's not a mobile (it's a tablet instead)
    FALSE, because it's a tablet and it checks for no tablets

    and true OR false finally leads to:

    TRUE

    and so the devices check is true and the element will be included.

    Best regards,
    Klaus

  • Thank you Klaus for making that clear to me *smile*

    In fact, I did it the other way round then on my own, because ! mobile + ! tablet obviously had to be a desktop. Trying this !mobile|!tablet derives from some other code, where I used more then one device parameter. But anyway I was wrong in my understanding of the | sign in general even there and this probably made me go crazy before as well. I simply regarded the pipe sign as being used to separate more than one item, not as an OR. So, this will help a lot in the future.


    Thanks again,
    Michael

    Edited once, last by mstoss (October 16, 2013 at 1:00 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!