Forum Discussion
JesseWu
5 hours agoCommunity Member
var player = GetPlayer();
// Convert variables optionA, optionB, and optionC to lowercase
["optionA", "optionB", "optionC"].forEach(function(variable) {
player.SetVar(variable, player.GetVar(variable).toLowerCase());
//if you want to convert to uppercase, replace with player.SetVar(variable, player.GetVar(variable).toUpperCase());
});
- SuzanneNeafus3 hours agoCommunity Member
Thank you so much. It is much easier for me to add this and only have to process capital letter inputs. Take care - Suzanne