Code: Select all
if computersystem then
valuerow:= [];
valuerow := computersystem;
for f in valuerow do
list.append(mylist, valuerow);
log.info("List of values DEBUG: %mylist%");
end for;
end if;
Code: Select all
computersystem = $computersystem
mylist = []
if computersystem:
valuerow = [computersystem]
for f in valuerow:
mylist.append(f)
print(f"List of values DEBUG: {mylist}")
Python:
Code: Select all
computersystem = "mymac"
mylist = []
if computersystem:
valuerow = [computersystem]
for f in valuerow:
mylist.append(f)
print(f"List of values DEBUG: {mylist}")
Code: Select all
import os
# Read the environment variable "computersystem"
computersystem = os.getenv("computersystem")
if computersystem:
valuerow = [computersystem]
mylist = []
for f in valuerow:
mylist.append(f)
print(f"List of values DEBUG: {mylist}")
else:
print("Environment variable 'computersystem' is not set.")