# Convert String To Boolean

Grammar — Boolen(value)
FlagsFunction

Converts a string value to a boolean value.

# Arguments

  • string — Value

Returns — bool

bool libNtve_gf_ConvertStringToBoolean(string lp_value);

Category: Conversion / Basic Conversions

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:2576

    DataTableSetText(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_Suffix_C), UserDataGetText("EndOfMatchMapSpecificAward", lp_userData, "Description", 1));
    DataTableSetFixed(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_Base_C), UserDataGetFixed("EndOfMatchMapSpecificAward", lp_userData, "Base", 1));
    DataTableSetBool(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_PresentAsRatio_C), libNtve_gf_ConvertStringToBoolean(UserDataGetString("EndOfMatchMapSpecificAward", lp_userData, "Present as Ratio", 1)));
    DataTableSetBool(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_GatedByBase_C), libNtve_gf_ConvertStringToBoolean(UserDataGetString("EndOfMatchMapSpecificAward", lp_userData, "Gated by Base", 1)));
    DataTableSetString(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_BadgeIndex_C), UserDataGetString("EndOfMatchMapSpecificAward", lp_userData, "Award Badge Index", 1));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:2577

    DataTableSetFixed(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_Base_C), UserDataGetFixed("EndOfMatchMapSpecificAward", lp_userData, "Base", 1));
    DataTableSetBool(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_PresentAsRatio_C), libNtve_gf_ConvertStringToBoolean(UserDataGetString("EndOfMatchMapSpecificAward", lp_userData, "Present as Ratio", 1)));
    DataTableSetBool(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_GatedByBase_C), libNtve_gf_ConvertStringToBoolean(UserDataGetString("EndOfMatchMapSpecificAward", lp_userData, "Gated by Base", 1)));
    DataTableSetString(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_BadgeIndex_C), UserDataGetString("EndOfMatchMapSpecificAward", lp_userData, "Award Badge Index", 1));
    DataTableSetString(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_ScoreValue_C), (UserDataGetGameLink("EndOfMatchMapSpecificAward", lp_userData, "Score Value Boolean", 1)));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:2918

    libGame_gv_initialSecondaryAwardsList[(lp_award)].lv_suffix = UserDataGetText("EndOfMatchGeneralAward", lp_userData, "Description", 1);
    libGame_gv_initialSecondaryAwardsList[(lp_award)].lv_base = UserDataGetFixed("EndOfMatchGeneralAward", lp_userData, "Base", 1);
    libGame_gv_initialSecondaryAwardsList[(lp_award)].lv_gatedbyBase = libNtve_gf_ConvertStringToBoolean(UserDataGetString("EndOfMatchGeneralAward", lp_userData, "Gated by Base", 1));
    libGame_gv_initialSecondaryAwardsList[(lp_award)].lv_presentasRatio = libNtve_gf_ConvertStringToBoolean(UserDataGetString("EndOfMatchGeneralAward", lp_userData, "Present as Ratio", 1));
    libGame_gv_initialSecondaryAwardsList[(lp_award)].lv_awardIndex = lp_award;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:2919

    libGame_gv_initialSecondaryAwardsList[(lp_award)].lv_base = UserDataGetFixed("EndOfMatchGeneralAward", lp_userData, "Base", 1);
    libGame_gv_initialSecondaryAwardsList[(lp_award)].lv_gatedbyBase = libNtve_gf_ConvertStringToBoolean(UserDataGetString("EndOfMatchGeneralAward", lp_userData, "Gated by Base", 1));
    libGame_gv_initialSecondaryAwardsList[(lp_award)].lv_presentasRatio = libNtve_gf_ConvertStringToBoolean(UserDataGetString("EndOfMatchGeneralAward", lp_userData, "Present as Ratio", 1));
    libGame_gv_initialSecondaryAwardsList[(lp_award)].lv_awardIndex = lp_award;
    libGame_gv_initialSecondaryAwardsList[(lp_award)].lv_awardBadgeIndex = UserDataGetString("EndOfMatchGeneralAward", lp_userData, "Award Badge Index", 1);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:2931

        libGame_gv_playerAwardEligibility[lv_iterator][(lp_award)].lv_suffix = UserDataGetText("EndOfMatchGeneralAward", lp_userData, "Description", 1);
        libGame_gv_playerAwardEligibility[lv_iterator][(lp_award)].lv_base = UserDataGetFixed("EndOfMatchGeneralAward", lp_userData, "Base", 1);
        libGame_gv_playerAwardEligibility[lv_iterator][(lp_award)].lv_gatedbyBase = libNtve_gf_ConvertStringToBoolean(UserDataGetString("EndOfMatchGeneralAward", lp_userData, "Gated by Base", 1));
        libGame_gv_playerAwardEligibility[lv_iterator][(lp_award)].lv_presentasRatio = libNtve_gf_ConvertStringToBoolean(UserDataGetString("EndOfMatchGeneralAward", lp_userData, "Present as Ratio", 1));
        libGame_gv_playerAwardEligibility[lv_iterator][(lp_award)].lv_awardIndex = lp_award;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:2932

        libGame_gv_playerAwardEligibility[lv_iterator][(lp_award)].lv_base = UserDataGetFixed("EndOfMatchGeneralAward", lp_userData, "Base", 1);
        libGame_gv_playerAwardEligibility[lv_iterator][(lp_award)].lv_gatedbyBase = libNtve_gf_ConvertStringToBoolean(UserDataGetString("EndOfMatchGeneralAward", lp_userData, "Gated by Base", 1));
        libGame_gv_playerAwardEligibility[lv_iterator][(lp_award)].lv_presentasRatio = libNtve_gf_ConvertStringToBoolean(UserDataGetString("EndOfMatchGeneralAward", lp_userData, "Present as Ratio", 1));
        libGame_gv_playerAwardEligibility[lv_iterator][(lp_award)].lv_awardIndex = lp_award;
        libGame_gv_playerAwardEligibility[lv_iterator][(lp_award)].lv_awardBadgeIndex = UserDataGetString("EndOfMatchGeneralAward", lp_userData, "Award Badge Index", 1);