The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"[Solved] Exception errors using an || statement"
Kate_Strydom
Member Posts: 19 Contributor II
Hi,
Does anyone know how to use a or (||) statement in the starts or ends function in the generate attribute operator?
neither does
Please help!
Kate
Does anyone know how to use a or (||) statement in the starts or ends function in the generate attribute operator?
doesn't work,
starts(url, "http:///" || "http://10.4.11")
neither does
I have used the || function successful before using the || between the functions in a if statement. But now it just gives me a generation exception.
starts(url, "http:///") || starts(url, "http://10.4.2")
Please help!
Kate
Tagged:
0
Answers
the first one cannot work, however the second one works fine for me ???
Just make sure you actually have an attribute called "url" as input.
Regards,
Marco
Can this topic be deleted?
I finally after much frustration found what the problem was. I had a row of data that had several missing values. So when I introduced the || it would throw an exception. It was fine with the individual start function but not with them in an or statement. I could not understand how I had managed to get || to work between functions previously and now it was bombing out.
So really this is the wrong Subject title. It should rather have been what are some common causes of exception errors. One being that a row of semi-missing data in a || statement.
Anyway, I appreciate the support and your response. But please delete this as it is almost nonsensical
Regards,
Kate
we usually don't delete topics because they might be valuable to others. In this case, others might end up being confused for the same reason
Regards,
Marco