Top "Variables" questions

THIS IS AMBIGUOUS; USE SPECIFIC-LANGUAGE TAGS WHENEVER APPLICABLE.

How do I get the type of a variable?

In C++, how does one find the type of a variable?

c++ variables typeof
Convert string to variable name in JavaScript

I’ve looked for solutions, but couldn’t find any that work. I have a variable called onlyVideo. "onlyVideo" the …

javascript variables
Capturing multiple line output into a Bash variable

I've got a script 'myscript' that outputs the following: abc def ghi in another script, I call: declare RESULT=$(./myscript) …

bash variables
More elegant way of declaring multiple variables at the same time

To declare multiple variables at the "same time" I would do: a, b = True, False But if I had to …

python variables declaration
What is the purpose of the single underscore "_" variable in Python?

What is the meaning of _ after for in this code? if tbh.bag: n = 0 for _ in tbh.bag.atom_set(): …

python variables naming-conventions metasyntactic-variable
Printing all global variables/local variables?

How can I print all global variables/local variables? Is that possible in gdb?

c variables gdb global-variables
Getting the name of a variable as a string

This thread discusses how to get the name of a function as a string in Python: How to get a …

python variables
Set variable in jinja

I would like to know how can I set a variable with another variable in jinja. I will explain, I …

python templates variables variable-assignment jinja2
How do you use variables in a simple PostgreSQL script?

For example, in MS-SQL, you can open up a query window and run the following: DECLARE @List AS VARCHAR(8) SELECT @…

postgresql variables
PHP Multiple Checkbox Array

I've looked around for a few examples here but a lot of them are either too advanced for my grasp …

php arrays variables checkbox