Difference between revisions of "FBInstant.context.isSizeBetween"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3<br/> === Description === <br /> This function determines whether the number of participants in the current game context is betw...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2018.3<br/> | + | <languages /> |
− | === Description === | + | '''<translate>Available since</translate>:''' Gideros 2018.3<br/> |
− | <br /> | + | '''<translate>Class</translate>:''' [[Special:MyLanguage/Context|Context]]<br/> |
+ | === <translate>Description</translate> === | ||
+ | <translate><br /> | ||
This function determines whether the number of participants in the current game context is between a given minimum and maximum, inclusive. If one of the bounds is null only the other bound will be checked against. It will always return the original result for the first call made in a context in a given game play session. Subsequent calls, regardless of arguments, will return the answer to the original query until a context change occurs and the query result is reset.<br /> | This function determines whether the number of participants in the current game context is between a given minimum and maximum, inclusive. If one of the bounds is null only the other bound will be checked against. It will always return the original result for the first call made in a context in a given game play session. Subsequent calls, regardless of arguments, will return the answer to the original query until a context change occurs and the query result is reset.<br /> | ||
− | <br /> | + | <br /></translate> |
− | < | + | <syntaxhighlight lang="lua"> |
− | (table) | + | (table) = FBInstant.context.isSizeBetween(minSize,maxSize) |
− | </ | + | </syntaxhighlight> |
− | '''minSize | + | === <translate>Parameters</translate> === |
− | '''maxSize | + | '''minSize''': (number) <translate>The minimum bound of the context size query.</translate> <br/> |
− | '''Returns''' (table) Table containing answers to the query.<br/> | + | '''maxSize''': (number) <translate>The maximum bound of the context size query.</translate> <br/> |
+ | === <translate>Return values</translate> === | ||
+ | '''<translate>Returns</translate>''' (table) <translate>Table containing answers to the query.</translate><br/> | ||
+ | === <translate>Examples</translate> === | ||
+ | '''Example'''<br/> | ||
+ | <syntaxhighlight lang="lua"> | ||
+ | result=FBInstant.context.isSizeBetween(3,5) | ||
+ | if result then | ||
+ | print("Answer",result.answer) | ||
+ | print("MinSize",result.minSize) | ||
+ | print("MaxSize",result.maxSize) | ||
+ | <br/></syntaxhighlight> | ||
+ | |||
+ | {{FBInstant.context}} |
Latest revision as of 14:27, 13 July 2023
Available since: Gideros 2018.3
Class: Context
Description
This function determines whether the number of participants in the current game context is between a given minimum and maximum, inclusive. If one of the bounds is null only the other bound will be checked against. It will always return the original result for the first call made in a context in a given game play session. Subsequent calls, regardless of arguments, will return the answer to the original query until a context change occurs and the query result is reset.
(table) = FBInstant.context.isSizeBetween(minSize,maxSize)
Parameters
minSize: (number) The minimum bound of the context size query.
maxSize: (number) The maximum bound of the context size query.
Return values
Returns (table) Table containing answers to the query.
Examples
Example
result=FBInstant.context.isSizeBetween(3,5)
if result then
print("Answer",result.answer)
print("MinSize",result.minSize)
print("MaxSize",result.maxSize)
<br/>