Brackets in input dialog... Why?

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
jassing
Posts: 94
Joined: 16 Jul 2017 01:42
Location: SF Bay Area

Brackets in input dialog... Why?

Post by jassing » 15 Dec 2019 03:23

Given attached flow, how should I be using it to avoid brackets appearing?
Screenshot_20191214-192024.png
Flow image
Screenshot_20191214-192024.png (46.74 KiB) Viewed 8770 times
[attachment=0]Screenshot_20191214-192350.png[/attachment

Had to zip it due to it being flagged as an attack vector.
Attachments
Screenshot_20191214-192350.png
Result
Screenshot_20191214-192350.png (36.4 KiB) Viewed 8769 times
Why_brackets_at_1st_last.zip
Demo flow...
(898 Bytes) Downloaded 618 times

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Brackets in input dialog... Why?

Post by Desmanto » 15 Dec 2019 10:13

Input Dialog use comma delimited list as the choices. It accept this

Code: Select all

one,two,three
If you don't format it properly, ans use {I} only in the choices, Automagic will think you want to use the whole list as string, and it will put out

Code: Select all

[one, two, three]
separated as (there is space before the t in two and three)

Code: Select all

[one
 two
 three]
To format it properly, you should use the comma delimited.

Code: Select all

{I,listformat,comma}
Many field that require comma delimited list should be formatted like this before using it as choice/list.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
jassing
Posts: 94
Joined: 16 Jul 2017 01:42
Location: SF Bay Area

Re: Brackets in input dialog... Why?

Post by jassing » 15 Dec 2019 13:52

I was taking the label "list" to mean a list object... Now you see my error.
I actually tried listformat, but missed the comma...
Again, thanks. I feel like I should pay you as a tutor!

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Brackets in input dialog... Why?

Post by Desmanto » 15 Dec 2019 15:52

Hahaha, I am thinking about it too. :lol: But for now, posting in the forum keeps my passion burning so I can keep on continuing my flow. Sometimes I can get lazy when busy, and not touching Automagic for weeks.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply