Results 1 to 5 of 5

Thread: Improper use of boolean expressions

  1. #1
    I could stop if I wanted to
    Join Date
    2003-08
    Location
    Tijuana
    Posts
    225
    Login to Give a bone
    0

    Default Improper use of boolean expressions

    I am trying to do a tag that will concatenate two parameters in a label. One parameter is text with the name of the component, and the other parameter is a yes/no parameter for existing equipment. I added a third parameter Existing Text that I want to leave blank for new equipment, and display (E) foe existing. The tag would concatenate Name + Existing Text

    I created three parameters:

    Name (text)
    Existing (yes/no)
    Existing Text (text)

    I am trying to make Existing Text work with this formula:

    if (Existing = 1, "(E)", "")

    But I keep receiving a message saying "Improper use of boolean expressions"

    Can someone help with this please, or tell if this is possible?

    Thanks,

  2. #2
    All AUGI, all the time Alex Page's Avatar
    Join Date
    2004-03
    Location
    Wellington, New Zealand
    Posts
    822
    Login to Give a bone
    0

    Default Re: Improper use of boolean expressions

    Yes/no results are implied....as below should work

    If (Existing,"(E)","")

  3. #3
    Certifiable AUGI Addict twiceroadsfool's Avatar
    Join Date
    2006-01
    Location
    ---
    Posts
    4,516
    Login to Give a bone
    0

    Default Re: Improper use of boolean expressions

    Regardless of the format being wrong, it wont let you do that with a text parameter. Concatenate isnt possible in Revit. And Formulas arent possible with Text parameters.

  4. #4
    AUGI Addict
    Join Date
    2015-12
    Location
    Orlando, FL
    Posts
    1,049
    Login to Give a bone
    0

    Default Re: Improper use of boolean expressions

    Quote Originally Posted by twiceroadsfool View Post
    Regardless of the format being wrong, it wont let you do that with a text parameter.
    Alex's solution is correct, though, since in this case "Existing" is a Yes/No parameter.

    Concatenate isnt possible in Revit. And Formulas arent possible with Text parameters.
    True. Text parameters cannot be used in formulas. The only text possible in formulas is the text value that one wants to assign to a text parameter, as the <result-if-true>, <result-if-false> parts of an IF formula.

  5. #5
    I could stop if I wanted to
    Join Date
    2003-08
    Location
    Tijuana
    Posts
    225
    Login to Give a bone
    0

    Default Re: Improper use of boolean expressions

    Thanks to everyone, everything's working now.

    What I meant by concatenate is using several parameters in the same label.

Similar Threads

  1. Diesel Expressions vs Field expressions in Trueview 2014
    By jayvee in forum DWG TrueView - General
    Replies: 1
    Last Post: 2018-07-13, 11:09 AM
  2. 2014: Encountered an Improper Argument CRASH
    By ctc in forum Revit Architecture - General
    Replies: 6
    Last Post: 2014-02-17, 11:37 PM
  3. File opening error - Improper argument
    By ch0mpion in forum Revit MEP - General
    Replies: 1
    Last Post: 2012-03-08, 02:45 PM
  4. Display lables with boolean conditions into expressions
    By civil3d.wishlist1941 in forum Civil 3D Wish List
    Replies: 0
    Last Post: 2009-10-06, 05:05 PM
  5. improper tread length with nosing profile
    By t1.shep in forum Revit Architecture - General
    Replies: 0
    Last Post: 2008-06-11, 07:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •