View PlGroup Variablen
ID | 7 |
Text | Variablen |
Title | Not set |
PlItems
- $status=isset($test);
if ($status) echo "Variable existiert: $test";
if (!isset($test2)) echo "Variable test2 existiert nicht!";
- Set status=$Data(test)
If status Write !,"Variable existiert: "_test
I '$D(test2) W !,"Variable existiert nicht!"
- echo "<pre>";
var_dump($test);
echo "</pre>";
- ZW test
S A(1,2)="Inhalt"
ZWrite A
Set ^GLOBAL1("sub1","sub2")="content"
ZW ^GLOBAL1
- //Hier wird in die Variable "semikolon" das Semikolon eingetragen
var semikolon = (char)59;
- var d = (double)integer;
var myButton = (Button)object;
- # Aktuelles Verzeichnis in einer Variable setzen
mydir="Mein Verzeichnis lautet $PWD"
echo $mydir
- import pprint
a="This is a test"
b=1
c=True
pprint.pprint(locals())
#{'__builtins__': <module '__builtin__' (built-in)>,
# '__doc__': None,
# '__name__': '__main__',
# '__package__': None,
# 'a': 'This is a test',
# 'b': 1,
# 'c': True,
# 'pprint': <module 'pprint' from '/usr/lib/python2.7/pprint.pyc'>}
pprint.pprint(globals())
- S A="This is a test"
Set b=1
ZW
ZWrite
- @echo off
SET myVariable=This is my content
SET myPathVariableWithBlanks="C:\Temp\Path With Blanks\File.txt"
echo %myVariable%
REM This is my content
echo %myPathVariableWithBlanks%
REM "C:\Temp\Path With Blanks\File.txt"
- @echo off
cd C:\Temp
REM Aktuelles Verzeichnis in einer Variable setzen
SET mydir="Mein Verzeichnis lautet %CD%"
echo %mydir%
REM "Mein Verzeichnis lautet C:\Temp"