'Condition', the function that will be used to determine whether the condition is met or not. In these case, we are checking if the variable
storage.evelyn_nameis equal to
'Evelyn', if the condition returns
true, the statement inside the
'True'property will be run, if it's false then the statement inside the
'False'property will be run.
'Conditional'object also supports strings. In this example, assume your storage contains a variable called
'money'and that the money variable represents currency the player can find, and then an ending is chosen when they come to a place to purchase food.
moneyso that instead of returning a number, it would return the number as a string.
elseof any kind, and Monogatari will throw an error if the Condition block returns something that is not found in the list of choices. For this reason, in the above example, we accounted for cases where money is less than 1, or where money is 4 or more. This way, if the person playing the game managed to acquire 5, 6, or even Seven whole dollars, the game will know what to do with that kind of money.