Donate Now Goal amount for this year: 2500 USD, Received: 1627 USD (65%)

Results 1 to 4 of 4

Thread: If statement formular - Help

  1. #1
    New Member Mathias Milling's Avatar
    Join Date
    November 29, 2017
    Location
    Odense, Denmark
    Posts
    2
    Current Local Time
    06:41 PM

    Question If statement formular - Help

    Hi everybody

    I'm having some trouble with an if statement formular. I'm new to the if formulars and maybe I can't do, what I wanna do.

    My goal is to return the largest value of two area values.
    In this case my parameter value Area1, and not "Area1".

    My formular is like this: And i have attatched a image as well.

    if(Area1 > Area2, "Area1", "Area2")



    Thanks in advance.

    Mathias
    Attached Thumbnails Attached Thumbnails If statement formular - Help-if-statement.png  

  2. #2
    New Member Mathias Milling's Avatar
    Join Date
    November 29, 2017
    Location
    Odense, Denmark
    Posts
    2
    Current Local Time
    06:41 PM
    Hi again.

    I found a solution on my own.

    I change the parameter type, so all of them are the same, in my case area.

    Then my formular looks like this:

    if(Area1 > Area2, Area1, Area2)

    Then it returns the largest of the two values to my parameter container.


  3. #3
    Moderator DaveP's Avatar
    Join Date
    January 10, 2011
    Location
    St Paul, MN
    Posts
    2,984
    Current Local Time
    12:41 PM
    Glad you figured it out.
    But it was the quote marks that were the problem, not the parameter type.
    Although it might have been both.

  4. #4
    Member
    Join Date
    March 21, 2013
    Location
    Phoenix, AZ
    Posts
    275
    Current Local Time
    10:41 AM
    Quote Originally Posted by Mathias Milling View Post
    Hi again.

    if(Area1 > Area2, Area1, Area2)

    FYI, It might not matter, but that formula will return Area2 in the case they are both equal. (Area1 is not greater than Area2) You can rearrange their order to determine which one will be returned if they are equal.

Similar Threads

  1. If Else Statement
    By Mimi Azimar in forum Dynamo BIM
    Replies: 4
    Last Post: May 26th, 2017, 07:57 AM
  2. Help with IF statement?
    By ryntau in forum Dynamo BIM
    Replies: 5
    Last Post: February 22nd, 2017, 08:49 AM
  3. IF Statement Help...
    By dynodan1uk in forum Architecture - Family Creation
    Replies: 11
    Last Post: April 21st, 2015, 09:58 AM
  4. If statement help
    By mkisno4 in forum Architecture - Family Creation
    Replies: 7
    Last Post: April 20th, 2015, 09:35 PM
  5. IF statement help
    By dzatto in forum Architecture - Family Creation
    Replies: 4
    Last Post: August 16th, 2013, 03:59 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
  •