# Convert Text Case

Grammar — Text(t) as case|Lower/Upper Case
FlagsNative | Function

Converts text to upper case or lower case.

# Arguments

Returns — text

native text TextCase(text t, bool upper);

Category: String / Formatting

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L3842
TextCase(libNtve_gf_DialogItemText(lp_button, 1), true)
// L8515
TextCase(StringExternal("Param/Value/E8F22CDE"), true)
// L10470
TextCase(DifficultyNameCampaign(lp_difficulty), true)
// L13794
TextCase(ConversationDataStateName(lp_convoID), true)
// L566
TextCase(lp_buttonText, true)
// L584
TextCase(lp_buttonText, true)
// L1254
TextCase(StringExternal("Param/Value/B72655EF"), true)
// L1266
TextCase(StringExternal("Param/Value/15DA9B3E"), true)
// L1276
TextCase(StringExternal("Param/Value/E60F4B90"), true)
// L3842
TextCase(libNtve_gf_DialogItemText(lp_button, 1), true)
// L8515
TextCase(StringExternal("Param/Value/E8F22CDE"), true)
// L10470
TextCase(DifficultyNameCampaign(lp_difficulty), true)
// L13794
TextCase(ConversationDataStateName(lp_convoID), true)
// L566
TextCase(lp_buttonText, true)
// L584
TextCase(lp_buttonText, true)
// L1254
TextCase(StringExternal("Param/Value/B72655EF"), true)
// L1266
TextCase(StringExternal("Param/Value/15DA9B3E"), true)
// L1276
TextCase(StringExternal("Param/Value/E60F4B90"), true)

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L2802
TextCase(libCamp_gf_MissionName(lp_mission), true)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L8666
TextCase(libSwaC_gf_ZS_StoryArmyUpgradeName(libSwaC_gv_zS_ArmyCustomUpgradeCurrent), true)

# mods/heroes.stormmod

MapScript.galaxy

// L3555
TextCase(StringExternal("Param/Value/62CFC26E"), true)
// L4029
TextCase(StringExternal("Param/Value/19C54563"), true)
// L4919
TextCase(StringExternal("Param/Value/2B86BC31"), true)
// L5492
TextCase(StringExternal("Param/Value/42D7B07C"), true)
// L6515
TextCase(StringExternal("Param/Value/8C7A1145"), true)
// L7586
TextCase(StringExternal("Param/Value/A7D5CCCB"), true)
// L3555
TextCase(StringExternal("Param/Value/62CFC26E"), true)
// L4029
TextCase(StringExternal("Param/Value/19C54563"), true)
// L4919
TextCase(StringExternal("Param/Value/2B86BC31"), true)
// L5492
TextCase(StringExternal("Param/Value/42D7B07C"), true)
// L6515
TextCase(StringExternal("Param/Value/8C7A1145"), true)
// L7586
TextCase(StringExternal("Param/Value/A7D5CCCB"), true)

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L2989
TextCase(UnitTypeGetName(UnitGetType(lv_bonusUnit)), true)

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L1860
TextCase(StringExternal("UI/GameSpeed/Fasr"), true)
// L1864
TextCase(StringExternal("UI/GameSpeed/Fast"), true)
// L1871
TextCase(StringExternal("UI/GameSpeed/Norm"), true)
// L1875
TextCase(StringExternal("UI/GameSpeed/Slow"), true)