Results 1 to 4 of 4

Thread: <Yes/No> control <Text> or <Number>

  1. #1
    Junior Member Vester85's Avatar
    Join Date
    January 3, 2017
    Posts
    12
    Current Local Time
    08:49 PM

    Not allowed! Not allowed!

    <Yes/No> control <Text> or <Number>

    Hi everyone.

    I can seem to figure this one out...
    Im looking for a formula to control Text-Parameter or Number-parameter by a Yes/No-Parameter

    My best way to describe it, is by a failed if statement

    In a text-parameter formula;
    =IF( [Yes/No] = 1<2, "Text 1", "Text 2" )
    < IF [Yes/No] = True, Then "Text 1", Else "Text 2" >

    In a Number-parameter formula;
    =IF( [Yes/No] = 1>2, "0", "1" )
    < IF [Yes/No] = False, Then "0", Else "1" >

    How can i make this work?

    Sendt fra min SM-G935F med Tapatalk

  2. #2
    Moderator Robin Deurloo's Avatar
    Join Date
    July 7, 2011
    Location
    Rotterdam, Holland
    Posts
    1,380
    Current Local Time
    09:49 PM

    Not allowed! Not allowed!
    For text
    Make a yes/no parameter (in my example it is test01)
    Make a text parameter (in my example it is test02)
    in test02 place this formula if(test01, "yes", "no")

    For number
    Make a yes/no parameter (in my example it is test01)
    Make a number parameter (in my example it is test02)
    in test02 place this formula if(test01, 0, 1)

    No need for fancy IF parameters when working with yes/no

  3. #3
    Junior Member Vester85's Avatar
    Join Date
    January 3, 2017
    Posts
    12
    Current Local Time
    08:49 PM

    Not allowed! Not allowed!
    Thank you for your answer.. I'll try that..
    Thats very simple indeed...

    Sendt fra min SM-G935F med Tapatalk

  4. #4
    Forum Addict GMcDowellJr's Avatar
    Join Date
    December 21, 2010
    Location
    Phoenix, AZ
    Posts
    2,662
    Current Local Time
    12:49 PM

    Not allowed! Not allowed!
    Quote Originally Posted by Vester85 View Post
    In a Number-parameter formula;
    =IF( [Yes/No] = 1>2, "0", "1" )
    < IF [Yes/No] = False, Then "0", Else "1" >
    To clarify - putting quotes around numbers that need to be numbers turns them into strings (i.e. text).

Similar Threads

  1. Control model text position using parameters
    By allan120791 in forum Architecture - Family Creation
    Replies: 6
    Last Post: April 4th, 2017, 10:29 PM
  2. Replies: 20
    Last Post: November 23rd, 2015, 08:31 AM
  3. Room Number / Door Number
    By Charles Karl in forum Architecture and General Revit Questions
    Replies: 7
    Last Post: July 16th, 2014, 11:19 AM
  4. Room Number & Space Number
    By LKeyser in forum MEP - General
    Replies: 3
    Last Post: July 3rd, 2012, 02:48 PM
  5. Text notes visibility control
    By redmonki in forum Architecture and General Revit Questions
    Replies: 2
    Last Post: March 21st, 2012, 04:23 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
  •