# I want to modify a value of a list

**URL:** https://forum.robotframework.org/t/i-want-to-modify-a-value-of-a-list/5776
**Category:** Robot Framework
**Created:** [1 June 2023 17:00 UTC](https://forum.robotframework.org/t/i-want-to-modify-a-value-of-a-list/5776 "2023-06-01T17:00:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![CarlosPitero](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@CarlosPitero](https://forum.robotframework.org/u/CarlosPitero)
#### Post date: [1 June 2023 17:00 UTC](https://forum.robotframework.org/t/i-want-to-modify-a-value-of-a-list/5776/1 "2023-06-01T17:00:19Z")

</div>

I’ve created a list in robotframework and I want to access a one of the parameters and modify it but I can’t.  
This is the variable list: @{result\_tests} FAIL FAIL

I’ve tried to modify with this command:  
Set List Value ${result\_tests} 0 PASS

---

<div class="post-metadata">

### Author: ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)
#### Post date: [2 June 2023 01:38 UTC](https://forum.robotframework.org/t/i-want-to-modify-a-value-of-a-list/5776/2 "2023-06-02T01:38:27Z")

</div>

Hi Carlos,

Are you using [Set List Value](https://robotframework.org/robotframework/latest/libraries/Collections.html#Set%20List%20Value) from the [Collections Library](https://robotframework.org/robotframework/latest/libraries/Collections.html)? If so what’s the error you’re getting? I ask because your syntax appears correct.

This example robot:

```python
***Settings***
Library Collections

***Test Cases***
Carlos Pitero 0
	@{result_tests}= Create List FAIL FAIL
	Log ${result_tests}
	Set List Value ${result_tests} 0 PASS
	Log ${result_tests}

```

produces this result:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/c/cf415e145e62b542022eefa3ad6372b903154d21.png)

Dave.
