PrintVar

From GECK
(Redirected from PrintV)
Jump to: navigation, search


A function added by the New Vegas Script Extender version 6.1.

Description

Prints the given variable's name and value to the console. Primary use case is debugging while scripting.

Since xNVSE 6.3.0, up to 14 additional variables can be passed to the function. This will act the same way as calling PrintVar multiple times with those different variables.

Syntax

[help]
(none) PrintVar variableName:variable otherVariableNames:variable(up to 14) 

Or:

(none) PrintV variableName:variable otherVariableNames:variable(up to 14)

Example

let fMyVariable := 2.5
printv fMyVariable

Console

>> fMyVariable: 2.5

Printing multiple variables in one line:

let fMyVariable := 2.5
let aMyVariable = ar_List 2, 4
printv fMyVariable, aMyVariable

Console

>> fMyVariable: 2.5
>> aMyVariable: [2, 4] 

See Also