Donate Now Goal amount for this year: 3000 USD, Received: 1207 USD (40%)

Results 1 to 4 of 4
Like Tree4Likes
  • 3 Post By Robin Deurloo
  • 1 Post By GMcDowellJr

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

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

    <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,169
    Current Local Time
    04:53 PM
    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
    03:53 PM
    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,556
    Current Local Time
    07:53 AM
    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).
    Robin Deurloo likes this.

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, 09: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
  •