|
Home > Archive > BizTalk Server General > November 2004 > IIF Functoid?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| jester 2004-11-29, 7:48 am |
|
Is there a functoid that accepts a boolean and returns a numeric value? I'm
a newbie on functoids and exploring the String Functoids. I cooked up this
theoretical scenario of needing to parse a string value with an optional
delimiter; sample valid values are:
firstValue_optionalValue
firstValue
What I want to do is to extract only the first part of the token (delimited
by the underscore char _ ). If the delimiter is always present, it would be
easy. But if it's not always present, that's where I'm having problems. If
there's a sort of IIF functoid, I can evaluate the result of a String Find
and return a numeric value as my second parameter to the String Left
functoid. Any ideas?
| |
| jester 2004-11-29, 8:46 pm |
|
Problem solved. I found out it was trivial creating your own functoids by
using the Script functoid. Inside my VB.NET script, I just delegated the
function call to VB.NET's IIF().
"jester" wrote:
>
> Is there a functoid that accepts a boolean and returns a numeric value? I'm
> a newbie on functoids and exploring the String Functoids. I cooked up this
> theoretical scenario of needing to parse a string value with an optional
> delimiter; sample valid values are:
>
> firstValue_optionalValue
> firstValue
>
> What I want to do is to extract only the first part of the token (delimited
> by the underscore char _ ). If the delimiter is always present, it would be
> easy. But if it's not always present, that's where I'm having problems. If
> there's a sort of IIF functoid, I can evaluate the result of a String Find
> and return a numeric value as my second parameter to the String Left
> functoid. Any ideas?
|
|
|
|
|