[SalesForce] REndering Pageblock table based on condition

enter image description here
Rendering Page Block table based on condition

I have 2 pageblocktables. Pageblocktable1 renders if List contains value. Pageblocktable2 renders if List doent contains value.

trying out this

None of them working

Best Answer

1) Do not use braces for the function size:

rendered="{!list.size > 0}"

2) Use ISBLANK function to check an expression for the NULL:

rendered="{!ISBLANK(list)}"

Here more info about functions: Operators and Functions