Sv Percentify

< [[::Category:Functions|Category:Functions]]

A function added by the New Vegas Script Extender.

Description

Returns the input string with each '%' character replaced by two '%' characters. The argument can be any expression evaluating to a string value. Added by NVSE 4.1.

Syntax

(string) sv_Percentify Source:string

Example

string_var my_string

let my_string := "100% gold"

let my_string := Sv_Percentify my_string

; my_string == "100%% gold"

See Also