HP Forums

Full Version: 2021: INPUT for CAS Mode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, INPUT cms does not work in CAS MODE, the following code although it is for home mode, it can be executed in CAS mode

try to test input_(x) then type '987' in single quotes, in the end the input variable is not stored in memory = (any way to do it?

PHP Code:
export input_(var)
begin
    local ok
;
    
ok:=input(eval(var));
    if 
ok then
        
print( var );
        print( eval(var));
        return eval(var);
    
end;
end
(05-01-2021 06:22 PM)compsystems Wrote: [ -> ]Hello, INPUT cms does not work in CAS MODE, the following code although it is for home mode, it can be executed in CAS mode

try to test input_(x) then type '987' in single quotes, in the end the input variable is not stored in memory = (any way to do it?

PHP Code:
export input_(var)
begin
    local ok
;
    
ok:=input(eval(var));
    if 
ok then
    
print( var );
    print( eval(var));
    return eval(var);
end

Where's the end of the if?
updated code.
Reference URL's