Can I insert rows (add records) using criteria in a multiselect field?

Can I insert rows (add records) using criteria in a multiselect field?

Hi fellow zohoers,

Thanks to some help from a moderator here. the code I used below allowed me to insert rows in a different table given certain criteria: The decision box "All" had to have a value of "true" (if (input.All))- and the input.client id had to match the client id selected in my URLs table (in my SEO order tracking app, this script is executed in my Orders form and inserts rows in the Order Lines form for each URL a selected client has.

My question is: can I adapt the following code so that I can select clients from a multiselect lookup field, and then insert rows for each url for where the client id is selected in that field--as I have done for a single client selected from a dropdown so far? How would I go about doing this?
  1. if (count(URLs[Client_ID == input.Client_ID])  >  0)
  2. {
  3.     AllUrls  =  URLs  [Client_ID == input.Client_ID];
  4.     if (input.All)
  5.     {
  6.         for each key in AllUrls
  7.         {
  8.             insert into Order_Lines
  9.             [
  10.                 Added_User = zoho.loginuser
  11.                 Client_ID = key.Client_ID
  12.                 Client_Type = key.Client_Type
  13.                 Keywords = key.Keywords
  14.                 Line_Cost = (input.Order_Cost  /  count(URLs[Client_ID == input.Client_ID]))
  15.                 Month = zoho.currentdate.getMonth()
  16.                 Order_Number = input.Order_Number
  17.                 Total_Order_Cost = input.Order_Cost
  18.                 URL = key.URL
  19.                 Vendor = input.Vendor_ID
  20.                 Year = zoho.currentdate.getYear()
  21.             ]
  22.         }
  23.     }
  24. }
Any help is truly appreciated...I'm extremely pleasantly surprised with just how customizable this system has been so far, thanks for everything.

Navid