'syntax error in expression (error token is "1") bash script

I am getting a syntax error when I try to test the following and it appears to be due to the 0 which is there. What am I missing here?

This is the code:

echo =========================================
echo sum of 4 arguments:"$requestedsum"
if [ -n "$requestedsum" ]
then 
(( $(echo "$requestedsum > $vg_free_space" |bc)));
echo "Requested space is not available in VG";
else
echo "Requested space is available";
fi


=========================================
sum of 4 arguments:0
10
./sizecheck.sh: line 26: ((: 0
1: syntax error in expression (error token is "1")
Requested space is not available in VG
lvm


Solution 1:[1]

I see: requestedsum='0 10'

Seems not to be a simple value. Try to assign a simple value to requestedsum.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pablo Javier Fernández