cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

If functions when one of the variables are undefined

TA_10206400
4-Participant

If functions when one of the variables are undefined

Hi

 

I'm trying to solve an issue where I want the if function to work, when one of the variables in some cases could be undefined.

 

Is this possible, or have some work around?

 

I'm using Prime 9.

 

Skjermbilde 2023-04-28 kl. 22.39.15.png

 

2 REPLIES 2
LucMeekes
23-Emerald III
(To:TA_10206400)

I don't see a way.

Even the 'Try/On error' programming construct will not allow an undefined variable in the 'try' part.

 

Success!
Luc

ttokoro
20-Turquoise
(To:TA_10206400)

As already Luc shows, at first fix the error in Prime sheet.

Then you can use your functions.
image.png

Announcements

Top Tags