LTSpice error with the V() function in a subcircuit
You need to set the resistance value of the variable resistor to R={V(IN)*100}.

The resulting netlist line will look like:
Rdoesntwork IN OUT R={V(IN) * 100}