Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
"[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