Welcome, Guest
Username: Password: Remember me
Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET
  • Page:
  • 1

TOPIC:

!! IN VO (made me laugh) 25 Aug 2021 18:40 #19444

  • IanB
  • IanB's Avatar
  • Topic Author


  • Posts: 9
  • After years of using VO found this strange thing when I put two ! (by mistake) rather than just the one (i guess you could call it obvious)

    Silly example below, but with me getting older sometimes difficult to see multiple !

    iif(! TRUE,TRUE,FALSE) = FALSE
    iif(!! TRUE,TRUE,FALSE) = TRUE
    iif(!!! TRUE,TRUE,FALSE) = FALSE
    iif(!!!! TRUE,TRUE,FALSE) = TRUE

    Ian

    Please Log in or Create an account to join the conversation.

    !! IN VO (made me laugh) 26 Aug 2021 11:44 #19453

    • Karl-Heinz
    • Karl-Heinz's Avatar


  • Posts: 774
  • Hi Ian,

    No one stops you doing this, because thereĀ“s nothing wrong with the multiple '!' . Iin X# the compiler translates this code:
    ? iif(! TRUE,TRUE,FALSE) == FALSE
    ? iif(!! TRUE,TRUE,FALSE) == TRUE
    ? iif(!!! TRUE,TRUE,FALSE) == FALSE
    ? iif(!!!! TRUE,TRUE,FALSE) == TRUE
    ?
    ? iif(.not. TRUE,TRUE,FALSE) == FALSE
    ? iif(.not. .not. TRUE,TRUE,FALSE) == TRUE
    ? iif(.not. .not. .not. TRUE,TRUE,FALSE) == FALSE
    ? iif(.not. .not. .not. .not. TRUE,TRUE,FALSE) == TRUE
    ?

    to:
    XSharp.RT.Functions.QOut(true)
    XSharp.RT.Functions.QOut(true)
    XSharp.RT.Functions.QOut(true)
    XSharp.RT.Functions.QOut(true)
    XSharp.RT.Functions.QOut()
    XSharp.RT.Functions.QOut(true)
    XSharp.RT.Functions.QOut(true)
    XSharp.RT.Functions.QOut(true)
    XSharp.RT.Functions.QOut(true)
    XSharp.RT.Functions.QOut()

    regards
    Karl-Heinz

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1