RizbIT Member Oct 13, 2019 #1 What exactly does this coding mean? Code: $string = (isset($_POST['string']) ? $_POST['string'] : 'empty');
What exactly does this coding mean? Code: $string = (isset($_POST['string']) ? $_POST['string'] : 'empty');
samspade Member Oct 13, 2019 #2 It's the ternary operator. See https://docs2.yoyogames.com/source/_build/3_scripting/3_gml_overview/14_language_features.html. or https://guide.freecodecamp.org/c/ternary-operator/. Essentially, it's a single line if else statement.
It's the ternary operator. See https://docs2.yoyogames.com/source/_build/3_scripting/3_gml_overview/14_language_features.html. or https://guide.freecodecamp.org/c/ternary-operator/. Essentially, it's a single line if else statement.