Testing array

Abalsam

Active member
I am a part of the beta program and tried to create a simple macro to test populating arrays using a loop.

The macro is intended to look like this:

Set local variable to 0.
Perform a loop 5x
Assign array index of lv-counter to lv-counter+1
Increment local variable counter by 1
End loop

At the end I should have an array of:
0,1 1,2 2,3 3,4 4,5 and 5,6.

The problem, the array index screen does not permit me to define the index # based on the value of a variable. Therefore, short of manually defining each array entry (which defeats the purpose of an array) I am not sure how to do this in the current beta.

Any insight or guidance you can offer would be greatly appreciated.

Thanks
 

Abalsam

Active member
I am a part of the beta program and tried to create a simple macro to test populating arrays using a loop.

The macro is intended to look like this:

Set local variable to 0.
Perform a loop 5x
Assign array index of lv-counter to lv-counter+1
Increment local variable counter by 1
End loop

At the end I should have an array of:
0,1 1,2 2,3 3,4 4,5 and 5,6.

The problem, the array index screen does not permit me to define the index # based on the value of a variable. Therefore, short of manually defining each array entry (which defeats the purpose of an array) I am not sure how to do this in the current beta.

Any insight or guidance you can offer would be greatly appreciated.

Thanks
I just installed the updated beta and tested the array feature as I previously described. It works flawlessly! Great work. Thank you.

One concern I have though is that by limiting the feature to pro only, when I create macros for use by both pro and free users, I must remember NOT to use any of these awesome but pro only new features.
 

MacroDroidDev

Administrator
Staff member
I have no intention of adding a wide range of new pro only features but I am still trying to make MacroDroid a viable business and encourage people to upgrade. Introducing dictionary/array types was extremely complicated and took many weeks of effort on my part so in this case I decided to make these variable types creatable for pro users only.

One important thing to note is that free users can download templates with dictionary/array variables and use them but they cannot add their own variables of type dictionary/array. This should allow you to share your macros without concern that free users cannot use them.

The JSON parsing action is currently for pro users only, I could change this as it's still in beta but at the moment I'm not minded to as I need more incentives to convert free users -> pro users.
 

Abalsam

Active member
I have no intention of adding a wide range of new pro only features but I am still trying to make MacroDroid a viable business and encourage people to upgrade. Introducing dictionary/array types was extremely complicated and took many weeks of effort on my part so in this case I decided to make these variable types creatable for pro users only.

One important thing to note is that free users can download templates with dictionary/array variables and use them but they cannot add their own variables of type dictionary/array. This should allow you to share your macros without concern that free users cannot use them.

The JSON parsing action is currently for pro users only, I could change this as it's still in beta but at the moment I'm not minded to as I need more incentives to convert free users -> pro users.
Understood. I did not realize that free users could still use macros which contain array or dictionary variables as well. That gives me much more flexibility. Thank you.

Ultimately, it is of course your choice on how best to make your efforts profitable. However, I should point out that I ended up choosing macrodroid over its competitors chiefly because I was able to test drive it thoroughly which permitted me to make an informed purchase.
 

MacroDroidDev

Administrator
Staff member
Thanks for the feedback, it's a difficult balance to find.

I'm still considering if I should make JSON parse pro only because I can see how this can be useful to provide a MacroDroid friendly interface to many web services.
 

Jacob L

Moderator (Lawsonator)
Thanks for the feedback, it's a difficult balance to find.

I'm still considering if I should make JSON parse pro only because I can see how this can be useful to provide a MacroDroid friendly interface to many web services.
I would like to pay for MacroDroid for other users. It's possible with Google play codes
 

Jacob L

Moderator (Lawsonator)

Attachments

  • Screenshot_20220330_135528_com.alextern.shortcuthelper.jpg
    Screenshot_20220330_135528_com.alextern.shortcuthelper.jpg
    233.3 KB · Views: 19
  • Screenshot_20220330_134951_com.android.vending.jpg
    Screenshot_20220330_134951_com.android.vending.jpg
    186.5 KB · Views: 19

MacroDroidDev

Administrator
Staff member
Ok, this is just standard app promo codes that can be used to apply a pro upgrade. It would not be allowed to sell these in the app as I'm sure it would be against Google Play terms and conditions.

I can take paypal payment if you would like to purchase codes outside of the Play purchase mechanism.
 
Top