How to understand PDMS paragon functions

 
  • I'm trying to use an existing spec category create new joints in paragon but I do not seem to understand the syntax for the IFTRUE() function, and some other functions. Is there an existing reference file to understand the syntax of these functions?
  • On the PDMS Documentation you can find this (and other functions):

    IFTRUE

    Synopsis  IFTrue(logical, anyA, anyB)  -> logical
    The first argument is a logical value or expression.
    The second and third arguments may be of any type BUT THEY MUST BE OF THE SAME TYPE.
    Returns a value that is the SAME TYPE as the second and third arguments.
    Description Returns anyA if logical evaluates to TRUE, anyB if logical evaluates to FALSE.
    anyA and anyB can be IFTRUE functions themselves (as long as they return consistent types) so IF constructs can be nested.ds.
    Side Effects None.
    Example IFT (SPREF EQ /A3B/GC50, 'BLUE', 'RED'
    iftrue (gwei gt 1tonne, /INSUL/THICK, /INSUL/THIN) -> BLUE
    ->INSUL/THICK
    Errors Normal number of argument errors and Mismatched second and third arguments:
    (2,497) TYPE MISMATCH: unmatched or illegal argument type for IFTRUE function.
  • Thanks a lot, I will read more on this  on the documentation