Author Topic: [solved]key2, key3... in ACTION_DEFINE_ASSOCIATIVE_ARRAY not work?  (Read 917 times)

Offline c4_angel

  • Planewalker
  • *****
  • Posts: 30
Hello folks.

I found ACTION_DEFINE_ASSOCIATIVE_ARRAY supports only key1 by now, I tried version 240 and 242.

E.g.
Code: [Select]
ACTION_DEFINE_ASSOCIATIVE_ARRAY xxx BEGIN
x, y, z => 111
END

ACTION_PHP_EACH xxx AS a => b BEGIN
PRINT ~%a% %b%~
END

And only print:
x 111

Does this issue exist, or my codes are incorrect?

Thank you.
« Last Edit: July 05, 2017, 07:09:58 AM by c4_angel »

Offline Mike1072

  • Planewalker
  • *****
  • Posts: 298
  • Gender: Male
Re: key2, key3... in ACTION_DEFINE_ASSOCIATIVE_ARRAY not work?
« Reply #1 on: July 05, 2017, 04:15:50 AM »
Code: [Select]
ACTION_PHP_EACH xxx AS a => b BEGIN
  PRINT ~%a_0% %a_1% %a_2% %b%~
END

Offline c4_angel

  • Planewalker
  • *****
  • Posts: 30
Re: key2, key3... in ACTION_DEFINE_ASSOCIATIVE_ARRAY not work?
« Reply #2 on: July 05, 2017, 07:09:30 AM »
Ahhhhh...So careless...

Thank you very much!

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: