question

yzx2002 avatar image
yzx2002 asked

can I pass int as args to cloud script function?

can I pass int as args to cloud script function?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

The args parameter is simply a JSON object, so you can pass in whatever you need. You can see an example of using an input parameter as an integer value in our Rewards sample, here:

https://github.com/PlayFab/CloudScriptSamples/blob/2d7e553b7e8386f0d6aad3f9fc6c6995e1b40728/Rewards/CloudScript_Rewards.js

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.