• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

  • Please be informed that our team will be unavailable due to a local holiday. We will resume normal operations from Monday, 18th August 2025.

Anyone know how to write loops in java or python for Code by Pabbly?

greco26

Member
Hi All,

I think I need to write a for loop (or something) in Code by Pabbly however I dont know Java or Python. I am newer to coding but I do understand basic logic conditions. Below is the data I need to loop through and my logical explanation of what I need to do.

If anyone can help me or give me some hints, I would be super appreciative!!

loop objective;

if 'isUS'==true then return the 'conid' value in that same contracts array.
if 'isUS' == false then go to the next contracts array and check. and so on...

[{"name":"ANGLO AMERICAN PLC","chineseName":"英美公司","assetClass":"STK","contracts":[{"conid":45024954,"exchange":"LSE","isUS":false}]},{"name":"AMERICAN AIRLINES GROUP INC","chineseName":"美国航空集团公司","assetClass":"STK","contracts":[{"conid":139673266,"exchange":"NASDAQ","isUS":true}]},{"name":"AVIAAM LEASING AB","chineseName":"AviaAM租赁集团","assetClass":"STK","contracts":[{"conid":285940697,"exchange":"VALUE","isUS":false}]}];
 
P

PabblyMember4

Guest
Hey @greco26

We have implemented the code in python in your workflow. Kindly check the below thread for more information.

 
Top