stopOnInvalidBoolean {CoopGame} | R Documentation |
Parameter Function stopOnInvalidBoolean
Description
stopOnInvalidBoolean checks definition is the parameter a boolean
Usage
stopOnInvalidBoolean(paramCheckResult, boolean)
Arguments
paramCheckResult |
list object for check result with list element 'errCode' for the error code and 'errMessage' for the error message. |
boolean |
parameter which is checked if it is a valid boolean. |
Error Code Ranges
Error codes and messages shown to user if error on parameter check occurs
Error Code | Message |
1120 | Parameter is not a boolean value |
1121 | Parameter is not of length 1 |
Author(s)
Jochen Staudacher jochen.staudacher@hs-kempten.de
Franz Mueller
See Also
Other ParameterChecks_CoopGame:
getEmptyParamCheckResult()
,
stopOnInconsistentEstateAndClaimsVector()
,
stopOnInvalidAllocation()
,
stopOnInvalidClaimsVector()
,
stopOnInvalidCoalitionS()
,
stopOnInvalidDictator()
,
stopOnInvalidEstate()
,
stopOnInvalidGameVector()
,
stopOnInvalidGrandCoalitionN()
,
stopOnInvalidIndex()
,
stopOnInvalidLeftRightGloveGame()
,
stopOnInvalidNChooseB()
,
stopOnInvalidNumberOfPlayers()
,
stopOnInvalidNumber()
,
stopOnInvalidQuota()
,
stopOnInvalidVetoPlayer()
,
stopOnInvalidWeightVector()
,
stopOnParamCheckError()
Examples
library(CoopGame)
paramCheckResult=getEmptyParamCheckResult()
validBoolean = TRUE
stopOnInvalidBoolean(paramCheckResult, validBoolean)