Skip to main content

Nitro-PROGRAM, IF-ENDIF Logic - Video 1

Overview

This video introduces IF-ENDIF conditional logic in Pro/PROGRAM using Nitro-PROGRAM. IF-ENDIF blocks allow engineers to control which features are active or suppressed based on parameter values, enabling configurable models that adapt to different design scenarios. The video demonstrates how to create a basic IF-ENDIF condition through the graphical editor, define the conditional expression, and specify which features are included inside the block. It shows how Nitro-PROGRAM visually represents the conditional structure, making it easy to see which features are controlled by which conditions without reading raw Pro/PROGRAM text.

Key Steps

  1. Open a Creo model with features you want to conditionally control
  2. Launch Nitro-PROGRAM and navigate to the program logic area
  3. Add a new IF-ENDIF block and define the conditional expression
  4. Place features inside the IF-ENDIF block to control their suppression state
  5. Write the program and regenerate to verify the conditional behavior

Tips

  • Start with simple single-condition IF-ENDIF blocks before building nested logic
  • The condition expression must reference parameters that exist in the model
  • Test both the true and false paths to ensure features suppress and resume correctly