Python Expression Functions

    Follow

    IF(statement,true,false) - Returns true if statement is true Returns false if statement is false:

    statement - conditional statement

    true - value to return if statement is True

    false - value to return if statement is False

    OR(*vars) - Returns True if ONE parameter is true

    AND(*vars) - Returns True if ALL parameters are true

    GET_SMALLEST_SIZE(size,*vars) - Returns the smallest value base on the size and values that are passed in. Acts like a lookuptable and returns the smallest value that is also >= Par1

    size - Size to lookup

    vars - Vars to use as the lookup (values must be ordered smallest to largest)

    EQ1(opening_quantity,start_point,end_point) - Returns equal spacing based on the quantity and start and end point

    opening_quantity - Number of spliters in opening

    start_point - Start point to calculate opening size (always smaller number)

    end_point - End point to calculate opening size (always larger number)

    INCH(value) - Converts value to meters: expecing value in inches

    value - value in inches

    MILLIMETER(value) - Converts value to meters: expecting value in millimeter

    value - value in millimeters

    LIMIT(val,val_min,val_max) - Returns par1 if value is between min and max else
    the minimum or maximum value value will be returned

    val - value to return

    val_min - minimum value to return

    val_max - maximum value to return

    PERCENTAGE(value,min,max) - Returns Percentage amount based on the min and max values

    value - value of percentage

    min - minimum percentage value

    max - maximum percentage value

    THICKNESS(sgi,pointer_name) - Gets thickness out of the spec groups for cutparts

    sqi - spec group index. This is typically 0

    pointer_name - name of pointer to look up

    EDGE_THICKNESS(sgi,pointer_name) - Gets edgebanding thickness out of spec groups for edgeparts

    sqi - spec group index. This is typically 0

    pointer_name - name of pointer to look up

    Comments