Adding conditions to functions / concat text under certain conditions

Jan

Member
Hello,

I want to concat text under a certain condition like this.
In this case I want to add a twitter handle to a tweet if the twitter handle is given.
I guess I can not use router or filter because I have multiple of those conditions and too many other steps afterards.
I can not use JS code because the "SuggestedTweet" from the example below comes from another option and the javascript code does not allow any input.
(I just created a feture request for this https://pabbly.hellonext.co/p/javascript-needs-input-variables because that would make the JS code so much more flexible and powerful!)
Is there a way to solve this within Pabbly connect?

So here is what I want in "code":
SuggestedTweet = StepX.ValueSuggestedTweet;
if(StepY.TwitterHandle != '')
{
SuggestedTweet += StepY.Twitterhandle;
}

Jan
 
P

Pabblymember11

Guest
Hey @Jan

Although you are welcome to experiment with it, you probably need to contact a coder to use this. Sorry to say but we are unable to provide the technical assistance for the same in your code. For further details, please read the Code documentation.

 

Jan

Member
Hello @Supreme !

I found a solution using JS-Code I wrote myself. But I wonder if there is not other way to solve it in Pabbly Connect itself. Because not everyone is/has a coder and the JS-Function is not very secure. As soon as it contains " or ' in the input values it will break.

Jan
 
P

Pabblymember11

Guest
Hey @Jan

We have replied to your query about your concern on another thread.
 
Top